.
This commit is contained in:
@@ -181,6 +181,7 @@ call plug#begin(g:plugin_dir)
|
||||
Plug g:dotvimdir
|
||||
call plug#end()
|
||||
|
||||
|
||||
augroup InitConfig
|
||||
" Automatically install missing plugins at startup
|
||||
autocmd VimEnter *
|
||||
@@ -220,28 +221,6 @@ function s:executeLateInit()
|
||||
autocmd VimEnter * call s:lateInitHelper()
|
||||
endfunction
|
||||
|
||||
" source all vim specific config eg. gui vim
|
||||
for f in split(glob(g:dotvimdir.'/configs/*-config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
|
||||
" source all vim plugin config
|
||||
for f in split(glob(g:dotvimdir.'/vim-plugin-settings/*.config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
|
||||
" source all vim9 plugin configs
|
||||
if g:vim_v >= 900
|
||||
for f in split(glob(g:dotvimdir.'/vim-plugin-settings/vim9/*.config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
endif
|
||||
|
||||
" source lua plugins if in neovim
|
||||
if has('nvim')
|
||||
lua require('lua-plugin-settings')
|
||||
endif
|
||||
|
||||
" source lua library
|
||||
|
||||
"""""" THEME_CONFIGURATION """"""
|
||||
@@ -300,4 +279,27 @@ end
|
||||
nnoremap <silent> <C-w>% :vsplit<CR>
|
||||
nnoremap <silent> <C-w>" :split<CR>
|
||||
|
||||
" source all vim specific config eg. gui vim
|
||||
for f in split(glob(g:dotvimdir.'/configs/*-config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
|
||||
" source all vim plugin config
|
||||
for f in split(glob(g:dotvimdir.'/vim-plugin-settings/*.config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
|
||||
" source all vim9 plugin configs
|
||||
if g:vim_v >= 900
|
||||
for f in split(glob(g:dotvimdir.'/vim-plugin-settings/vim9/*.config.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
endif
|
||||
|
||||
" source lua plugins if in neovim
|
||||
if has('nvim')
|
||||
lua require('lua-plugin-settings')
|
||||
endif
|
||||
|
||||
|
||||
call s:executeLateInit()
|
||||
|
||||
Reference in New Issue
Block a user