From 72a0d0d584e2b64dd7cd44047688d470e6e39f8f Mon Sep 17 00:00:00 2001 From: Derek P Sifford Date: Thu, 13 Sep 2018 12:20:04 -0400 Subject: [PATCH] fixes to css, sh, and tex syntaxes + adjust SpecialKey for nvim --- after/syntax/css.vim | 1 - after/syntax/sh.vim | 5 +++++ after/syntax/tex.vim | 18 ++++++++++++++++++ colors/dracula.vim | 10 ++++++++-- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 after/syntax/sh.vim create mode 100644 after/syntax/tex.vim diff --git a/after/syntax/css.vim b/after/syntax/css.vim index cca9679..34bd93c 100644 --- a/after/syntax/css.vim +++ b/after/syntax/css.vim @@ -10,6 +10,5 @@ hi! link cssFunctionComma Delimiter hi! link cssNoise DraculaPink hi! link cssProp DraculaCyan hi! link cssPseudoClassId DraculaGreenItalic -hi! link cssSelectorOp Delimiter hi! link cssUnitDecorators DraculaPink hi! link cssVendor DraculaGreenItalic diff --git a/after/syntax/sh.vim b/after/syntax/sh.vim new file mode 100644 index 0000000..5b2ff7f --- /dev/null +++ b/after/syntax/sh.vim @@ -0,0 +1,5 @@ +if dracula#should_abort('bash', 'ksh', 'posix', 'sh') + finish +endif + +hi! link shCommandSub NONE diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim new file mode 100644 index 0000000..5a28f91 --- /dev/null +++ b/after/syntax/tex.vim @@ -0,0 +1,18 @@ +if dracula#should_abort('tex') + finish +endif + +hi! link texBeginEndName DraculaOrangeItalic +hi! link texBoldItalStyle DraculaOrangeBoldItalic +hi! link texBoldStyle DraculaOrangeBold +hi! link texInputFile DraculaOrangeItalic +hi! link texItalStyle DraculaYellowItalic +hi! link texLigature DraculaPurple +hi! link texMath DraculaPurple +hi! link texMathMatcher DraculaPurple +hi! link texMathSymbol DraculaPurple +hi! link texRefZone DraculaBgDarker +hi! link texSpecialChar DraculaPurple +hi! link texSubscripts DraculaPurple +hi! link texTitle DraculaFgBold +hi! link texTypeStyle DraculaSubtle diff --git a/colors/dracula.vim b/colors/dracula.vim index e1e2737..1d81c41 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -1,4 +1,4 @@ -" Dracula Theme: v1.5.0 {{{ +" Dracula Theme: {{{ " " https://github.com/zenorocha/dracula-theme " @@ -279,6 +279,13 @@ hi! link WarningMsg DraculaOrangeInverse call s:h('MatchParen', s:fg, s:pink, [s:attrs.underline]) call s:h('Conceal', s:comment, s:bglight) +" Neovim uses SpecialKey for escape characters only. Vim uses it for that, plus whitespace. +if has('nvim') + hi! link SpecialKey DraculaRed +else + hi! link SpecialKey DraculaSubtle +endif + hi! link Comment DraculaComment hi! link Underlined DraculaFgUnderline hi! link Todo DraculaTodo @@ -321,7 +328,6 @@ hi! link Type DraculaCyanItalic hi! link Delimiter DraculaFg hi! link Special DraculaPink -hi! link SpecialKey DraculaSubtle hi! link SpecialComment DraculaCyanItalic hi! link Tag DraculaCyan hi! link helpHyperTextJump DraculaLink