I'm very new to neovim and I'm trying to set it up for LaTeX. I've been unable to indent in .tex files after changing tabstop and shiftwidth after using :set to set them both to 4. Specifically, my setup and what I've done are as follows:
Setup:
Install neovim and used kickstart.nvim.
Installed vimtex and vim-dispatch (following supercharged LaTeX using neovim)
Changed tabstop and shiftwidth to 4 using :set.
To reproduce issue:
Create a new .tex file.
Enter insert mode and press tab.
No indenting occurs, and I get the following error:
Error executing vim.schedule lua callback: ...al/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:1054: attempt to call method 'indent' (a nil value)
stack traceback:
...al/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:1054: in function 'indent'
...al/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:716: in function 'trigger_expand'
...jack/.local/share/nvim/lazy/LuaSnip/lua/luasnip/init.lua:282: in function 'snip_expand'
...jack/.local/share/nvim/lazy/LuaSnip/lua/luasnip/init.lua:351: in function 'expand'
...jack/.local/share/nvim/lazy/LuaSnip/lua/luasnip/init.lua:394: in function 'jump'
.../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:341: in function <.../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:341>
This issue does not arise with normal .txt files (i.e., I can entire insert mode and indent empty lines as expected). I've tried adjusting tabstop back to 8 and reinstalling neovim, but the issue persists.
Any help would be greatly appreciated.