~alexdavid/dotfiles

c5e9ec6280e803790d319ac219e2252492f1033e — Alex David 5 months ago fc9fada
Update nvim colorscheme
3 files changed, 15 insertions(+), 4 deletions(-)

M bin/toggle-colors
M nvim/colorscheme.vim
M nvim/plugin/lightline.vim
M bin/toggle-colors => bin/toggle-colors +2 -1
@@ 10,4 10,5 @@ else
  cp ~/.config/alacritty/dark.yml  ~/.config/alacritty/alacritty.yml
fi

~/.config/sway/set-wallpaper
~/.config/sway/set-wallpaper &
killall -s SIGUSR1 nvim || true

M nvim/colorscheme.vim => nvim/colorscheme.vim +12 -2
@@ 1,10 1,20 @@
colorscheme onedark
let g:colorscheme_name = 'onedark'
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

M nvim/plugin/lightline.vim => nvim/plugin/lightline.vim +1 -1
@@ 5,7 5,7 @@ function! LightlineGitBranch()
endfunction

let g:lightline = {
      \   'colorscheme': 'seoul256',
      \   'colorscheme': 'PaperColor',
      \   'active': {
      \     'left': [
      \        [ 'mode' ],