-
|
For some reason the What I've done so far to track down the problem is to add a new autocmd: and when I then enter insert mode for the first time I get the message However if I just before remove the autocmd from So for some reason it seems like Does anyone know what the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Okay finally figured it out! So I'm using packer and setup so that luasnip is lazy loaded by module. Now since luasnip has a ftdetect and ftplugin folders, packer will execute a BufRead event when loading luasnip. So when entering insert mode the InsertEnter autocmd triggers the function to setup cmp which in turn calls the luasnip module which makes packer load luasnip and therefore trigger BufRead again. Opened a PR to be able to manually be able to set if BufRead is needed in packer here: wbthomason/packer.nvim#769 Puh! |
Beta Was this translation helpful? Give feedback.
Okay finally figured it out!
So I'm using packer and setup so that luasnip is lazy loaded by module. Now since luasnip has a ftdetect and ftplugin folders, packer will execute a BufRead event when loading luasnip.
So when entering insert mode the InsertEnter autocmd triggers the function to setup cmp which in turn calls the luasnip module which makes packer load luasnip and therefore trigger BufRead again.
Opened a PR to be able to manually be able to set if BufRead is needed in packer here: wbthomason/packer.nvim#769
Puh!