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 ++++++++++++------- Common/nvim/lua/basic.lua | 3 --- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'Common/nvim') 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") diff --git a/Common/nvim/lua/basic.lua b/Common/nvim/lua/basic.lua index 342dde9..7bee1ba 100755 --- a/Common/nvim/lua/basic.lua +++ b/Common/nvim/lua/basic.lua @@ -32,6 +32,3 @@ vim.cmd [[ colorscheme bw ]] vim.opt.background = "light" -- No idea why, preview in fzf does at least work extremely porly without this vim.cmd [[ let $BAT_THEME = 'gruvbox-light' ]] - --- Show colour column -vim.opt.colorcolumn = '120' -- cgit v1.2.3