Skip to content

Commit

Permalink
change SpecialKey to DraculaPink (vim only)
Browse files Browse the repository at this point in the history
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 <Space> :echo "hello"<CR>`). 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`).
  • Loading branch information
benknoble committed May 20, 2021
1 parent c0337ce commit d863bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colors/dracula.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d863bb6

Please sign in to comment.