Files
dotfiles/.config/vim/vimrc.d/20-plugins.vim
2022-08-26 08:38:07 +02:00

29 lines
758 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 as well
" as nodejs.
if ((has('patch-8.1.1719') || has('nvim')) && executable('node'))
let g:coc_global_extensions =
\ ['coc-clangd', 'coc-sh', 'coc-pyright', '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
if (exists("g:loaded_tmux_navigator"))
" Disable tmux navigator when zooming the Vim pane
let g:tmux_navigator_disable_when_zoomed = 1
endif