~alexdavid/dotfiles

ref: e41da60478508d45b875ef7aa13ebb77d2fa90fb dotfiles/nvim/colorscheme.vim -rw-r--r-- 546 bytes
e41da604 — Alex David Add mpd config 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
colorscheme pencil
if has("gui_running")
else
  highlight Normal ctermbg=none
endif

" Update light/dark colors on boot and when receiving a USR1 signal
function! UpdateBackground()
  if filereadable(expand('~/.config/isdark'))
    set background=dark
  else
    set background=light
  endif
  redraw
endfunction
call UpdateBackground()
autocmd Signal SIGUSR1 call UpdateBackground()

" Highlight trailing whitespace
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
autocmd ColorScheme * match ExtraWhitespace /\s\+\%#\@<!$/