This commit is contained in:
Donaldttt
2022-07-23 15:06:00 -04:00
+31 -5
View File
@@ -49,8 +49,12 @@
" { " {
Plug 'mg979/vim-visual-multi' Plug 'mg979/vim-visual-multi'
" } " }
"if has('nvim') && str2float(g:nvim_version) >= 0.5
" Plug 'nvim-lualine/lualine.nvim'
"else
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
"endif
" For nvim-bufferline " For nvim-bufferline
" { " {
@@ -83,6 +87,18 @@
endif endif
call plug#end() call plug#end()
" Helper functions
" {
function! SetAirlineTheme(theme)
if has('nvim') && str2float(g:nvim_version) >= 0.5
else
execute("AirlineTheme " . a:theme)
endif
endfunction
" }
" Plugin Preferences " Plugin Preferences
" { " {
" xiyaowong/nvim-transparent { " xiyaowong/nvim-transparent {
@@ -114,6 +130,11 @@
endif endif
" } " }
"if has('nvim') && str2float(g:nvim_version) >= 0.5 && isdirectory(expand(plugin_dir . "/lualine.nvim"))
" nvim-lualine/lualine.nvim {
" }
"else
" vim-airline { " vim-airline {
" Set configuration options for the statusline plugin vim-airline. " Set configuration options for the statusline plugin vim-airline.
" Use the powerline theme and optionally enable powerline symbols. " Use the powerline theme and optionally enable powerline symbols.
@@ -129,7 +150,8 @@
"let g:airline_theme = 'solarized' "let g:airline_theme = 'solarized'
endif endif
" } " }
"endif
" junegunnjunegunn/fzf { " junegunnjunegunn/fzf {
" [Buffers] Jump to the existing window if possible " [Buffers] Jump to the existing window if possible
let g:fzf_buffers_jump = 1 let g:fzf_buffers_jump = 1
@@ -174,10 +196,12 @@
" Inversion " Inversion
if g:colors_name == "github_light" if g:colors_name == "github_light"
colorscheme github_dark colorscheme github_dark
:AirlineTheme afterglow call SetAirlineTheme("afterglow")
":AirlineTheme afterglow
else else
colorscheme github_light colorscheme github_light
:AirlineTheme silver call SetAirlineTheme("silver")
":AirlineTheme silver
endif endif
endfunction endfunction
@@ -199,11 +223,13 @@
if g:colors_name == "afterglow" if g:colors_name == "afterglow"
set background=light set background=light
colorscheme PaperColor colorscheme PaperColor
:AirlineTheme silver call SetAirlineTheme("silver")
":AirlineTheme silver
else else
set background=dark set background=dark
colorscheme afterglow colorscheme afterglow
:AirlineTheme afterglow call SetAirlineTheme("afterglow")
":AirlineTheme afterglow
endif endif
endfunction endfunction