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

Default Tab mapping is not mapped with lazy loading #432

Open
dzirtusss opened this issue Aug 14, 2024 · 0 comments
Open

Default Tab mapping is not mapped with lazy loading #432

dzirtusss opened this issue Aug 14, 2024 · 0 comments

Comments

@dzirtusss
Copy link

Default <Tab> binding is never executed when lazy loading (e.g. with lazy.nvim) because it is triggered by VimEnter event, which, in case of lazy loading, will happen before plugin code is executed.

And when plugin code will be executed, VimEnter will be far gone.

 autocmd VimEnter             * call s:MapTab()

https://github.com/Exafunction/codeium.vim/blob/main/plugin/codeium.vim#L37

IMO, this needs some other way of triggering.

PS triggering manually later on:

doautocmd <nomodeline> codeium VimEnter

fixes the issue and binds <Tab> properly

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

No branches or pull requests

1 participant