10000 fix: keep listchars dimmed in Vim · sainnhe/sonokai@598d29b · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: keep listchars dimmed in Vim
Browse files Browse the repository at this point in the history
Vim doesn't distinguish between hl-Whitespace and hl-SpecialKey for
'listchars' and non-listchars unprintable characters, so 'listchars'
ended up being highlighted with a bright color in Vim after commit
7b31864.

Reverts the highlight of 'listchars' to the style prior to commit
7b31864, although this reduces the readability of mappings in the
output of :map commands.

Ref. sainnhe/gruvbox-material#211
  • Loading branch information
antoineco committed Jul 13, 2024
1 parent 8b082ae commit 598d29b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions colors/sonokai.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let s:configuration = sonokai#get_configuration()
let s:palette = sonokai#get_palette(s:configuration.style, s:configuration.colors_override)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Mon Jul 8 07:28:42 UTC 2024'
let s:last_modified = 'Sat Jul 13 15:36:25 UTC 2024'
let g:sonokai_loaded_file_types = []

if !(exists('g:colors_name') && g:colors_name ==# 'sonokai' && s:configuration.better_performance)
Expand Down Expand Up @@ -96,8 +96,12 @@ call sonokai#highlight('ModeMsg', s:palette.fg, s:palette.none, 'bold')
call sonokai#highlight('MoreMsg', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('MatchParen', s:palette.none, s:palette.bg4)
call sonokai#highlight('NonText', s:palette.bg4, s:palette.none)
call sonokai#highlight('Whitespace', s:palette.bg4, s:palette.none)
call sonokai#highlight('SpecialKey', s:palette.purple, s:palette.none)
if has('nvim')
call sonokai#highlight('Whitespace', s:palette.bg4, s:palette.none)
call sonokai#highlight('SpecialKey', s:palette.purple, s:palette.none)
else
call sonokai#highlight('SpecialKey', s:palette.bg4, s:palette.none)
endif
call sonokai#highlight('Pmenu', s:palette.fg, s:palette.bg2)
call sonokai#highlight('PmenuSbar', s:palette.none, s:palette.bg2)
if s:configuration.menu_selection_background ==# 'blue'
Expand Down

0 comments on commit 598d29b

Please sign in to comment.
0