Skip to content

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