micangl / cmp-vimtex

Vimtex source for nvim-cmp.
MIT License
78 stars 5 forks source link

Change of cwd when opening .tex file #6

Closed marcusfschmidt closed 9 months ago

marcusfschmidt commented 9 months ago

I noticed that upon opening a .tex file in neovim, my cwd would change to the same as that of the file itself. I narrowed this behavior down to this plugin - disabling it leaves my cwd unchanged. It is simply added using lazy and, as per the vimtex documentation, vimtex is added as as cmp source for the .tex filetype.

I am unsure where this behavior comes from - but I will be happy to help out if it is not immediately reproducible and turns out to be a more complicated interplay between my plugins.

micangl commented 9 months ago

Thanks for the warning! I should have fixed the issue with the last commit. Let me know if it works.

marcusfschmidt commented 9 months ago

Yep, that did it :)