When installing the plugin using lazy.nvim, I get the following error:
Failed to source `/Users/computer/.local/share/nvim/lazy/cmp-vimtex/after/plugin/cmp_vimtex.lua`
vim/_editor.lua:0: function <SNR>38_NetrwOpenFile[35]..BufNewFile Autocommands for "*"..FileType Autocommands for "tex"..script nvim_exec2() called at FileType Autocommands fo
r "tex":0../Users/computer/.local/share/nvim/lazy/cmp-vimtex/after/plugin/cmp_vimtex.lua: Vim(source):E5113: Error while calling lua chunk: vim/_editor.lua:0: function <SNR>38
_NetrwOpenFile[35]..BufNewFile Autocommands for "*"..FileType Autocommands for "tex"..script nvim_exec2() called at FileType Autocommands for "tex":0../Users/computer/.local/s
hare/nvim/lazy/cmp-vimtex/after/plugin/cmp_vimtex.lua..nvim_exec2() called at /Users/computer/.local/share/nvim/lazy/cmp-vimtex/after/plugin/cmp_vimtex.lua:0: Vim(call):E121:
Undefined variable: b:vimtex
stack traceback:
^I[C]: in function 'nvim_exec2'
^Ivim/_editor.lua: in function 'cmd'
^I...cal/share/nvim/lazy/cmp-vimtex/lua/cmp_vimtex/source.lua:19: in function 'start_parser'
^I...local/share/nvim/lazy/cmp-vimtex/lua/cmp_vimtex/init.lua:5: in function '_start_parser'
^I...local/share/nvim/lazy/cmp-vimtex/lua/cmp_vimtex/init.lua:22: in function 'setup'
^I...l/share/nvim/lazy/cmp-vimtex/after/plugin/cmp_vimtex.lua:2: in main chunk
^I[C]: in function 'nvim_exec2'
^Ivim/_editor.lua: in function 'cmd'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:481: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:480>
^I[C]: in function 'xpcall'
^I.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:113: in function 'try'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:480: in function 'source'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:439: in function 'source_runtime'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:410: in function 'packadd'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:342: in function '_load'
^I...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:187: in function 'load'
^I...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:83: in function <...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:72>
^I[C]: in function 'nvim_cmd'
^I...brew/Cellar/neovim/0.9.4/share/nvim/runtime/filetype.lua:25: in function <...brew/Cellar/neovim/0.9.4/share/nvim/runtime/filetype.lua:24>
^I[C]: in function 'nvim_buf_call'
^I...brew/Cellar/neovim/0.9.4/share/nvim/runtime/filetype.lua:24: in function <...brew/Cellar/neovim/0.9.4/share/nvim/runtime/filetype.lua:10>
As you can see, I installed nvim from brew, if that's relevant. I have the vimtex plugin installed and it seems to work fine. I have the nvim-cmp plugin installed by installing zero-lsp nvim with luasnips integration.
When installing the plugin using lazy.nvim, I get the following error:
As you can see, I installed nvim from brew, if that's relevant. I have the vimtex plugin installed and it seems to work fine. I have the nvim-cmp plugin installed by installing zero-lsp nvim with luasnips integration.