Skip to content

Commit

Permalink
feat(neotree): increase cursorline contrast on light bg
Browse files Browse the repository at this point in the history
The 'bg1' background color of the NeoTreeCursorLine highlight group
(linked to CursorLine by default) is very close to 'bg_dim' in light
mode and makes Neo-tree's cursorline almost imperceptible.

Fixes #215
  • Loading branch information
antoineco committed Sep 30, 2024
1 parent 25425c4 commit 5cb4848
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion colors/gruvbox-material.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let s:configuration = gruvbox_material#get_configuration()
let s:palette = gruvbox_material#get_palette(s:configuration.background, s:configuration.foreground, s:configuration.colors_override)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Mon Sep 2 06:14:54 UTC 2024'
let s:last_modified = 'Mon Sep 30 09:36:59 UTC 2024'
let g:gruvbox_material_loaded_file_types = []

if !(exists('g:colors_name') && g:colors_name ==# 'gruvbox-material' && s:configuration.better_performance)
Expand Down Expand Up @@ -1834,6 +1834,9 @@ highlight! link NeoTreeIndentMarker NonText
highlight! link NeoTreeNormalNC NeoTreeNormal
highlight! link NeoTreeSignColumn NeoTreeNormal
highlight! link NeoTreeRootName Title
if &background ==# 'light'
call gruvbox_material#highlight('NeoTreeCursorLine', s:palette.none, s:palette.bg0)
endif
" syn_end }}}
" syn_begin: octo {{{
" https://github.com/pwntester/octo.nvim
Expand Down

0 comments on commit 5cb4848

Please sign in to comment.