From ba3a4ea25b451c10cd372b81c9168ce038f69d1c Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Thu, 20 Jun 2024 09:07:22 +0200 Subject: Consistency --- Common/nvim/colors/bw.vim | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'Common/nvim/colors') diff --git a/Common/nvim/colors/bw.vim b/Common/nvim/colors/bw.vim index 7ac865c..f148bbf 100644 --- a/Common/nvim/colors/bw.vim +++ b/Common/nvim/colors/bw.vim @@ -77,14 +77,19 @@ hi CurSearch ctermbg=11 guibg=DarkYellow guifg=Black ctermfg=Black hi IncSearch cterm=reverse gui=reverse -"function! SetTheme() -" if &background == 'dark' +function! SetTheme() + if &background == 'dark' " hi Pmenu guibg=LightGray guifg=Black -" else -" endif -"endfunction -"autocmd VimEnter * call SetTheme() -"autocmd OptionSet background call SetTheme() + hi DiffAdd ctermfg=2 guibg=Green + hi DiffDelete ctermfg=1 guibg=Red + hi DiffText ctermbg=94 guibg=Blue + hi link Removed DiffDelete + hi link Added DiffAdd + else + endif +endfunction +autocmd VimEnter * call SetTheme() +autocmd OptionSet background call SetTheme() " Identify group under cursor nnoremap hi :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name") -- cgit v1.2.3