diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-06-20 09:07:22 +0200 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-06-20 09:07:22 +0200 |
commit | ba3a4ea25b451c10cd372b81c9168ce038f69d1c (patch) | |
tree | 5016a6da0d42464e215623242056f0407cb42908 | |
parent | c664883e31ef5e82785c114cd7a46c812a5c7f3e (diff) | |
download | dotfiles-ba3a4ea25b451c10cd372b81c9168ce038f69d1c.tar.gz dotfiles-ba3a4ea25b451c10cd372b81c9168ce038f69d1c.zip |
Consistency
-rw-r--r-- | Common/nvim/colors/bw.vim | 19 | ||||
-rwxr-xr-x | Common/nvim/lua/basic.lua | 3 |
2 files changed, 12 insertions, 10 deletions
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 <silent> <leader>hi :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name")<CR> 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' |