diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 91a4c43..7575f8a 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -25,6 +25,17 @@ set background=dark colorscheme solarized call togglebg#map("") +function SetWhitespace() + if &background == 'dark' + hi Whitespace ctermfg=0 + else + hi Whitespace ctermfg=7 + end +endfunction + +call SetWhitespace() +map :ToggleBG :call SetWhitespace() + set number set nowrap filetype plugin indent on