This commit is contained in:
2025-02-20 16:24:41 +08:00
parent faaa65d28f
commit 56b90dad19
2 changed files with 50 additions and 52 deletions
@@ -1,32 +1,28 @@
vim9script vim9script
# if utils#hasplug('fuzzyy') highlight link fuzzyyMatching error
g:files_respect_gitignore = 1 g:fuzzyy_dropdown = 1
g:files_only_git_files = 1 g:enable_fuzzyy_MRU_files = 1
g:fuzzyy_menu_matched_hl = 'error' g:fuzzyy_window_layout = {
g:fuzzyy_dropdown = 1 FuzzyFiles: {
g:enable_fuzzyy_MRU_files = 1 width: 0.8,
g:fuzzyy_window_layout = { },
FuzzyFiles: { FuzzyMRUFiles: {
width: 0.8, preview: 1,
}, },
FuzzyMRUFiles: { FuzzyBuffers: {
preview: 1, preview: 1,
}, width: 0.8,
FuzzyBuffers: { preview_ratio: 0.5,
preview: 1, },
width: 0.8, FuzzyGrep: {
preview_ratio: 0.5, preview: 1,
}, width: 0.8,
FuzzyGrep: { preview_ratio: 0.5,
preview: 1, },
width: 0.8, }
preview_ratio: 0.5, g:fuzzyy_buffers_keymap = {
}, 'delete_buffer': "\<c-g>",
} 'close_buffer': "\<c-l>",
g:fuzzyy_buffers_keymap = { }
'delete_buffer': "\<c-g>", nnoremap <silent> <leader>fl :FuzzyCmdHistory<CR>
'close_buffer': "\<c-l>",
}
nnoremap <silent> <leader>fl :FuzzyCmdHistory<CR>
# endif
+24 -22
View File
@@ -181,6 +181,7 @@ call plug#begin(g:plugin_dir)
Plug g:dotvimdir Plug g:dotvimdir
call plug#end() call plug#end()
augroup InitConfig augroup InitConfig
" Automatically install missing plugins at startup " Automatically install missing plugins at startup
autocmd VimEnter * autocmd VimEnter *
@@ -220,28 +221,6 @@ function s:executeLateInit()
autocmd VimEnter * call s:lateInitHelper() autocmd VimEnter * call s:lateInitHelper()
endfunction 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 " source lua library
"""""" THEME_CONFIGURATION """""" """""" THEME_CONFIGURATION """"""
@@ -300,4 +279,27 @@ end
nnoremap <silent> <C-w>% :vsplit<CR> nnoremap <silent> <C-w>% :vsplit<CR>
nnoremap <silent> <C-w>" :split<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() call s:executeLateInit()