Auto install new nvim plugins

This commit is contained in:
Fabian Ising
2022-10-06 16:37:30 +02:00
parent 629c3b6985
commit 0e60423de9

View File

@@ -68,6 +68,13 @@ Plug 'lervag/vimtex'
Plug 'fatih/vim-go'
call plug#end()
" Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
filetype plugin indent on
set cinkeys-=0#