Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: when vim-plug lazy loading, tab cannot be successfully completed #422

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chenxuan520
Copy link

@chenxuan520 chenxuan520 commented Aug 2, 2024

problem

When I load this plugin with vim-plug and lazy load, I find that it can complete but can't press tab to complete.Its completion is normal, but tab can not be used, it is obvious that the key mapping problem
图片

why to change

The problem is that maptab is called after autocmd vimenter, but lazy loading does not trigger vimenter events, so it needs to be called directly from the plugin folder. This method is also called in the same way in copilot.vim except in the vimenter and plugin folder again, so I think it's appropriate to add this call
图片
图片
tested in nvim 0.8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant