Files
dotfiles/.config/vim/vimrc.d/20-plugins.vim
Julian Prein a4760b7518 vim:plugins: Source optional plugins directly
When adding the `!` only the paths are added to the `runtimepath` and
nothing is sourced (yet). As `keys.vim` for example checks if gutentags
is loaded before creating a binding to :Tags this has to change and the
plugins need to be sourced directly.
2022-03-03 01:19:14 +01:00

23 lines
569 B
VimL

" Plugins """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Load all plugins in pack/*/start
packloadall
" 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
" ctags
if (executable('ctags'))
packadd vim-gutentags
let g:gutentags_ctags_exclude = [
\ 'node_modules/*',
\ '.git/*',
\ 'build/*'
\]
endif