[vim] revamped somehow broken AirlineTheme command

This commit is contained in:
2022-08-21 17:10:48 +03:00
parent acd1c57e9b
commit 832aec46d7

View File

@@ -35,16 +35,16 @@ call plug#end() "Перестать это делать
" "
set term=xterm-256color set term=xterm-256color
colorscheme atom-dark-256 colorscheme atom-dark-256
AirlineTheme dark let g:airline_theme='dark'
function ToggleColors() function ToggleColors()
if (g:colors_name == "atom-dark-256") if (g:colors_name == "atom-dark-256")
colorscheme antiphoton colorscheme antiphoton
AirlineTheme light let g:airline_theme='light'
else else
colorscheme atom-dark-256 colorscheme atom-dark-256
AirlineTheme dark let g:airline_theme='dark'
endif endif
endfunction endfunction
nnoremap <C-b> :call ToggleColors()<CR> nnoremap <C-b> :call ToggleColors()<CR>