fix some bugs

This commit is contained in:
Nachuan Tang
2023-03-22 13:28:23 -04:00
parent 8175681fa9
commit 739a16aa0b
+4 -3
View File
@@ -40,6 +40,7 @@ nmap <leader><leader>t :call SwapWord()<CR>
Plug 'sainnhe/everforest' Plug 'sainnhe/everforest'
if !g:high_performence if !g:high_performence
Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' }
Plug 'jacoborus/tender.vim' Plug 'jacoborus/tender.vim'
Plug 'cocopon/iceberg.vim' Plug 'cocopon/iceberg.vim'
Plug 'catppuccin/nvim', Cond( has('nvim-0.8.2') \|\| g:vim_v >= 900 , { 'as': 'catppuccin' }) Plug 'catppuccin/nvim', Cond( has('nvim-0.8.2') \|\| g:vim_v >= 900 , { 'as': 'catppuccin' })
@@ -670,8 +671,8 @@ endfunction
end end
let g:fzf_colors = { let g:fzf_colors = {
\ 'gutter': ['bg', 'normal'], \ 'gutter': ['bg', 'Normal'],
\ } \ }
" check if ripgrep is installed " check if ripgrep is installed
if ! executable('rg') if ! executable('rg')
@@ -852,7 +853,7 @@ endfunction
if HasPlug('vim-airline') && HasPlug('vim-airline-themes') && exists(':AirlineTheme') if HasPlug('vim-airline') && HasPlug('vim-airline-themes') && exists(':AirlineTheme')
let theme = a:0 > 0 ? a:1 : g:my_config[&background].airline_theme let theme = a:0 > 0 ? a:1 : g:my_config[&background].airline_theme
try try
execute('AirlineTheme ' . a:theme) execute('AirlineTheme ' . theme)
catch catch
let theme = g:default_config[&background].airline_theme let theme = g:default_config[&background].airline_theme
execute('AirlineTheme ' . theme) execute('AirlineTheme ' . theme)