Change nvim solarized plugin
Use solarized8 so we can use a true color terminal and not have incorrect colors
This commit is contained in:
parent
4be208a732
commit
1ed8bcfa72
@ -2,7 +2,6 @@
|
|||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
|
|
||||||
" Plugins
|
" Plugins
|
||||||
Plug 'altercation/vim-colors-solarized'
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'cespare/vim-toml'
|
Plug 'cespare/vim-toml'
|
||||||
Plug 'vim-scripts/nginx.vim'
|
Plug 'vim-scripts/nginx.vim'
|
||||||
@ -12,6 +11,7 @@ Plug 'gabesoft/vim-ags'
|
|||||||
Plug 'hashivim/vim-terraform'
|
Plug 'hashivim/vim-terraform'
|
||||||
Plug 'junegunn/fzf'
|
Plug 'junegunn/fzf'
|
||||||
Plug 'kchmck/vim-coffee-script'
|
Plug 'kchmck/vim-coffee-script'
|
||||||
|
Plug 'lifepillar/vim-solarized8'
|
||||||
Plug 'majutsushi/tagbar'
|
Plug 'majutsushi/tagbar'
|
||||||
Plug 'posva/vim-vue'
|
Plug 'posva/vim-vue'
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
@ -28,22 +28,23 @@ call plug#end()
|
|||||||
|
|
||||||
" Solarized
|
" Solarized
|
||||||
syntax enable
|
syntax enable
|
||||||
set background=dark
|
set termguicolors
|
||||||
colorscheme solarized
|
colorscheme solarized8
|
||||||
set cursorline
|
set cursorline
|
||||||
set colorcolumn=80,100
|
set colorcolumn=80,100
|
||||||
call togglebg#map("")
|
|
||||||
|
|
||||||
function SetWhitespace()
|
function ToggleBackground(current)
|
||||||
if &background == 'dark'
|
if a:current == 'dark'
|
||||||
hi Whitespace ctermfg=0
|
set background=light
|
||||||
|
hi Whitespace ctermfg=7 guifg=#eee8d5
|
||||||
else
|
else
|
||||||
hi Whitespace ctermfg=7
|
set background=dark
|
||||||
|
hi Whitespace ctermfg=0 guifg=#073642
|
||||||
end
|
end
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call SetWhitespace()
|
call ToggleBackground("light")
|
||||||
map <F5> :ToggleBG<CR> :call SetWhitespace()<CR>
|
nmap <F5> :call ToggleBackground(&background)<CR>
|
||||||
|
|
||||||
set spell
|
set spell
|
||||||
set number
|
set number
|
||||||
|
Loading…
Reference in New Issue
Block a user