From f456d790b007c3841549ec35a996483135cceec3 Mon Sep 17 00:00:00 2001 From: gxlin Date: Wed, 16 Jun 2021 00:55:31 +0800 Subject: Add vim-godot plug --- .vim/plugins/init.vim | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.vim/plugins/init.vim') diff --git a/.vim/plugins/init.vim b/.vim/plugins/init.vim index 590f18c..6b8bff2 100644 --- a/.vim/plugins/init.vim +++ b/.vim/plugins/init.vim @@ -4,12 +4,19 @@ if empty(glob('~/.vim/autoload/plug.vim')) autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif -let s:plugins = split(expand('~/.dotfiles/.vim/plugins/*.vim')) +let s:plugins = split(expand('~/.dotfiles/.vim/plugins/*.plug')) +let s:settings = split(expand('~/.dotfiles/.vim/plugins/*.vim')) function! s:load_plugins() for plugin in s:plugins - if plugin !~ 'init.vim' - exec "source " . plugin + exec "source " . plugin + endfor +endfunction + +function! s:load_settings() + for setting in s:settings + if setting !~ 'init.vim' + exec "source " . setting endif endfor endfunction @@ -17,3 +24,5 @@ endfunction call plug#begin('~/.vim/plugged') call s:load_plugins() call plug#end() + +call s:load_settings() -- cgit v1.2.3