Closed jwbullard closed 10 months ago
Seems like two issues. The first is if you want Vimtex bindings then in vimtex.lua turn 'vimtex_mappings_enabled' on by changing the 0 to a 1.
As for completion, cmp.lua is the relevant config file. Note that there is now a new plugin called vimtex-cmp which I have not gotten around to setting up yet but could help. You don't need that plugin to have completion (I have completion without it) but then you will have to troubleshoot why completion is not working. I can't tell from the information that you provided, and it might be worth trying the new plugin before anything else.
Let me know what else you uncover and if you hit any roadblocks with vimtex-cmp.
Thanks so much! The mappings are working fine now. I'm still working on the autocompletion part. I followed a long youtube video for setting up language-aware autcomplete for neovim and that might be conflicting somehow. I'll do some more digging and try to resolve that.
Description
Using nvim v0.9.4 on Mac OS Sonoma 14.1.1, I have my vimtex.lua file attached.
Opening up nvim, I run :checkhealth and get this output for vimtex:
If I open up a LaTeX file, I can view the vimtex documentation with :h vimtex
Running :VimtexInfo on an open LaTeX file is successfull. See output below.
However, none of the expected vimtex features work within that LaTeX file. This includes:
Steps to reproduce
No response
Expected behavior
Default mappings (or any mappings) should work Environment completion should work, reference completion should work, etc.
Actual behavior
None of the default mappings are recognized. For example, if I type \ll, the cursor just moves two steps to the right.
Environment completion is not happening, reference completion suggestions are not happening ...
Do you use a latexmkrc file?
No
VimtexInfo