From 869f70a7603b77cdb2f63983dd286f3f61b7a966 Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Fri, 4 Jun 2021 14:30:24 -0400 Subject: [PATCH] change SpecialKey to DraculaPink (vim only) (#252) Related: #192, #210, #248 Also #247 is about `NonText`, which needs investigating. Issues: `:digraphs`, special keys in `:map` output, and certain parts of `'listchars'` are "subtle" and hard to read (esp. w/ `cursorline` over them). Also, vim uses `SpecialKey` for them (instead of `Whitespace` for `'listchars'` and `SpecialKey` elsewhere, like NeoVim). Fix: make `SpecialKey` more like special keys (the highlight in vimscript for, e.g., `map :echo "hello"`). This has the side effect of making digraphs more visible. It also makes certain `'listchars'` pink, which may be annoying. But there is no way currently to separate the two in vim. Rationale: It matches with the special keys in maps. The fact that vim uses it elsewhere may simply be "wrong" and need changed. If you don't like it: well, as usual, you can use an autocommand to use whatever colors you want (`:help dracula-customization`). --- colors/dracula.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors/dracula.vim b/colors/dracula.vim index 1d0c17c..14f6542 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -262,7 +262,7 @@ if has('nvim') hi! link LspDiagnosticsUnderlineInformation DraculaInfoLine hi! link LspDiagnosticsUnderlineWarning DraculaWarnLine else - hi! link SpecialKey DraculaSubtle + hi! link SpecialKey DraculaPink endif hi! link Comment DraculaComment