From 2cdfe6f8827010ce0e067a7a2a50cd9a9821ac92 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Sat, 8 Jan 2022 13:59:26 +0100 Subject: [PATCH] added language-specific settings for TeX --- neovim/.config/nvim/ftplugin/tex.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 neovim/.config/nvim/ftplugin/tex.vim diff --git a/neovim/.config/nvim/ftplugin/tex.vim b/neovim/.config/nvim/ftplugin/tex.vim new file mode 100644 index 0000000..52548d1 --- /dev/null +++ b/neovim/.config/nvim/ftplugin/tex.vim @@ -0,0 +1,6 @@ +" set german as default +setlocal spelllang=de +" folding +setlocal foldmethod=expr +setlocal foldexpr=vimtex#fold#level(v:lnum) +setlocal foldtext=vimtex#fold#text()