From a4760b7518309ce93ca164de237636f6f41b5499 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 3 Mar 2022 01:16:34 +0100 Subject: [PATCH] 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. --- .config/vim/vimrc.d/20-plugins.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc.d/20-plugins.vim b/.config/vim/vimrc.d/20-plugins.vim index d7e7f72..cc8b4c4 100644 --- a/.config/vim/vimrc.d/20-plugins.vim +++ b/.config/vim/vimrc.d/20-plugins.vim @@ -7,13 +7,13 @@ packloadall if (has('patch-8.1.1719') || has('nvim')) let g:coc_global_extensions = \ ['coc-clangd', 'coc-sh', 'coc-python', 'coc-vimtex'] - packadd! coc.nvim + packadd coc.nvim source $XDG_CONFIG_HOME/vim/coc.nvim.vim endif " ctags if (executable('ctags')) - packadd! vim-gutentags + packadd vim-gutentags let g:gutentags_ctags_exclude = [ \ 'node_modules/*', \ '.git/*',