Files
dotfiles/.config/vim/vimrc.d/20-plugins.vim
druckdev 7c6909c0bf 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)
2020-12-24 02:31:10 +01:00

15 lines
531 B
VimL

" Plugins ######################################################################
" Load all plugins in pack/*/start
packloadall
" ARM assembly syntax highlighting
autocmd BufNewFile,BufRead *.s,*.S packadd! arm-syntax-vim | set filetype=arm
" Auto completion
" needs vim >= 8.1.1719 to support features like popup and text property.
if (has('patch-8.1.1719') || has('nvim'))
let g:coc_global_extensions =
\ ['coc-clangd', 'coc-sh', 'coc-python', 'coc-vimtex']
packadd! coc.nvim
source $XDG_CONFIG_HOME/vim/coc.nvim.vim
endif