vim: Move vimtex settings into tex ftplugin
And load vimtex automatically. I discarded the autocommand as vimtex only loads a small ftdetect script for tex and the rest of the plugin is made up of ftplugins, indent files, etc. by itself. The overhead of the autocmd feels bigger than just loading the small component and letting vim doing the rest. (But this is in now way tested/benchmarked. That is just how I feel and it makes it a tad cleaner)
This commit is contained in:
1
.config/vim/pack/plugins/start/vimtex
Symbolic link
1
.config/vim/pack/plugins/start/vimtex
Symbolic link
@@ -0,0 +1 @@
|
||||
../opt/vimtex/
|
||||
@@ -12,6 +12,3 @@ if (has('patch-8.1.1719') || has('nvim'))
|
||||
packadd! coc.nvim
|
||||
source $XDG_CONFIG_HOME/vim/coc.nvim.vim
|
||||
endif
|
||||
" LaTeX
|
||||
autocmd BufNewFile,BufRead *.tex packadd! vimtex
|
||||
\ | source $XDG_CONFIG_HOME/vim/vimtex.vim
|
||||
|
||||
Reference in New Issue
Block a user