diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-12-01 23:45:46 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-12-01 23:45:46 +0300 |
commit | 105e7ad5d2a83b310a4b92dd25e116f62192ffca (patch) | |
tree | f079d64d30c6891460e9538ca119297a4fb645d0 /dotfiles/.config/nvim | |
parent | fc59cd540f019644658d1339fdce13f4ea8c255d (diff) | |
download | vimrice-105e7ad5d2a83b310a4b92dd25e116f62192ffca.tar.gz vimrice-105e7ad5d2a83b310a4b92dd25e116f62192ffca.zip |
Changes to colors
* Updated personal color scheme
* Deleted unused color schemes
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r-- | dotfiles/.config/nvim/init.vim | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index 7735b4b..33fae1c 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -35,17 +35,30 @@ call plug#end() syntax on set foldmethod=syntax set omnifunc=syntaxcomplete#Complete - set background=dark - set termguicolors set guicursor=n-v-c-sm:hor20,i-ci-ve:ver25,r-cr-o:block set cursorline - let g:ultramar_italic=1 - colorscheme ultramar set number set relativenumber set scrolloff=5 set colorcolumn=+1 set textwidth=80 + set mouse=a + +" Colors + colorscheme ultramar + let g:ultramar_italic=1 + if $COLORSCHEME == "light" + set background=light + endif + set termguicolors + function! ChangeBG() + if &background == "light" + set background=dark + return + endif + set background=light + endfunction + map <F10> :call ChangeBG()<CR> " Set screen title let &titlestring = "vim - " . expand("%:t") |