Skip to content

Commit

Permalink
add syntax adjustments on demand + add php & typescript (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford authored May 2, 2018
1 parent a50316e commit b34882b
Show file tree
Hide file tree
Showing 14 changed files with 244 additions and 219 deletions.
10 changes: 10 additions & 0 deletions after/plugin/dracula.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ if exists('g:loaded_fzf') && ! exists('g:fzf_colors')
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
augroup END
endif
"}}}
" GitGutter: {{{

if exists('g:gitgutter_enabled')
hi! link GitGutterAdd DraculaGreen
hi! link GitGutterChange DraculaYellow
hi! link GitGutterChangeDelete DraculaOrange
hi! link GitGutterDelete DraculaRed
endif

"}}}

" vim: fdm=marker ts=2 sts=2 sw=2:
15 changes: 15 additions & 0 deletions after/syntax/css.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'css'
finish
endif

hi! link cssAttrComma Delimiter
hi! link cssAttrRegion DraculaPink
hi! link cssAttributeSelector DraculaGreenItalic
hi! link cssBraces Delimiter
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
12 changes: 12 additions & 0 deletions after/syntax/gitcommit.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'gitcommit'
finish
endif

" The following two are misnomers. Colors are correct.
hi! link diffFile DraculaGreen
hi! link diffNewFile DraculaRed

hi! link diffAdded DraculaGreen
hi! link diffLine DraculaCyanItalic
hi! link diffRemoved DraculaRed

9 changes: 9 additions & 0 deletions after/syntax/html.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'html'
finish
endif

hi! link htmlTag DraculaFg
hi! link htmlArg DraculaGreenItalic
hi! link htmlTitle DraculaFg
hi! link htmlH1 DraculaFg
hi! link htmlSpecialChar DraculaPurple
9 changes: 9 additions & 0 deletions after/syntax/javascript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'javascript'
finish
endif

hi! link javaScriptBraces Delimiter
hi! link javaScriptNumber Constant
hi! link javaScriptNull Constant
hi! link javaScriptFunction DraculaPink

48 changes: 48 additions & 0 deletions after/syntax/markdown.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
if ! exists('b:current_syntax')
finish
endif

if b:current_syntax ==# 'mkd'
" plasticboy/vim-markdown {{{1
hi! link htmlBold DraculaOrangeBold
hi! link htmlBoldItalic DraculaOrangeBoldItalic
hi! link htmlH1 DraculaPurpleBold
hi! link htmlItalic DraculaYellowItalic
hi! link mkdBlockquote DraculaYellowItalic
hi! link mkdBold DraculaOrangeBold
hi! link mkdBoldItalic DraculaOrangeBoldItalic
hi! link mkdCode DraculaGreen
hi! link mkdCodeEnd DraculaGreen
hi! link mkdCodeStart DraculaGreen
hi! link mkdInlineUrl DraculaLink
hi! link mkdItalic DraculaYellowItalic
hi! link mkdLink DraculaPink
hi! link mkdListItem DraculaCyan
hi! link mkdRule DraculaComment
hi! link mkdUrl DraculaLink
"}}}1
elseif b:current_syntax ==# 'markdown'
" Builtin: {{{1
hi! link markdownBlockquote DraculaCyan
hi! link markdownBold DraculaOrangeBold
hi! link markdownBoldItalic DraculaOrangeBoldItalic
hi! link markdownCode DraculaGreen
hi! link markdownCodeDelimiter DraculaGreen
hi! link markdownH1 DraculaPurpleBold
hi! link markdownH2 markdownH1
hi! link markdownH3 markdownH1
hi! link markdownH4 markdownH1
hi! link markdownH5 markdownH1
hi! link markdownH6 markdownH1
hi! link markdownHeadingDelimiter markdownH1
hi! link markdownHeadingRule markdownH1
hi! link markdownItalic DraculaYellowItalic
hi! link markdownLinkText DraculaPink
hi! link markdownListMarker DraculaCyan
hi! link markdownOrderedListMarker DraculaCyan
hi! link markdownRule DraculaComment
hi! link markdownUrl DraculaLink
"}}}
endif

" vim: fdm=marker ts=2 sts=2 sw=2:
9 changes: 9 additions & 0 deletions after/syntax/php.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'php'
finish
endif

hi! link phpClass Type
hi! link phpDocTags DraculaCyanItalic
hi! link phpFunction Function
hi! link phpParent Normal
hi! link phpSpecialFunction DraculaCyan
16 changes: 16 additions & 0 deletions after/syntax/ruby.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'ruby'
finish
endif

if ! exists('g:ruby_operators')
let g:ruby_operators=1
endif

hi! link rubyBlockArgument DraculaOrangeItalic
hi! link rubyBlockParameter DraculaOrangeItalic
hi! link rubyCurlyBlock DraculaPink
hi! link rubyGlobalVariable DraculaPurple
hi! link rubyInstanceVariable DraculaPurpleItalic
hi! link rubyInterpolationDelimiter DraculaPink
hi! link rubyRegexpDelimiter DraculaRed
hi! link rubyStringDelimiter DraculaYellow
12 changes: 12 additions & 0 deletions after/syntax/sass.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'sass'
finish
endif

hi! link sassClass cssClassName
hi! link sassClassChar cssClassNameDot
hi! link sassId cssIdentifier
hi! link sassIdChar cssIdentifier
hi! link sassInterpolationDelimiter DraculaPink
hi! link sassMixinName Function
hi! link sassProperty cssProp
hi! link sassVariableAssignment Operator
41 changes: 41 additions & 0 deletions after/syntax/typescript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'typescript'
finish
endif

hi! link typescriptArrayMethod DraculaCyan
hi! link typescriptArrowFuncArg DraculaOrangeItalic
hi! link typescriptAssign Operator
hi! link typescriptBinaryOp Operator
hi! link typescriptBraces Normal
hi! link typescriptCall typescriptArrowFuncArg
hi! link typescriptClassHeritage Type
hi! link typescriptClassName Type
hi! link typescriptDateMethod DraculaCyan
hi! link typescriptDateStaticMethod Function
hi! link typescriptDecorator DraculaGreenItalic
hi! link typescriptES6SetMethod DraculaCyan
hi! link typescriptEndColons Normal
hi! link typescriptEnum Type
hi! link typescriptEnumKeyword Keyword
hi! link typescriptFuncKeyword Keyword
hi! link typescriptGlobal Type
hi! link typescriptGlobalMethod DraculaCyan
hi! link typescriptGlobalObjects Type
hi! link typescriptIdentifier Keyword
hi! link typescriptInterfaceHeritage Type
hi! link typescriptInterfaceName Type
hi! link typescriptInterpolationDelimiter Keyword
hi! link typescriptKeywordOp Keyword
hi! link typescriptLogicSymbols Operator
hi! link typescriptMember Normal
hi! link typescriptMemberOptionality Special
hi! link typescriptObjectColon Special
hi! link typescriptObjectLabel Normal
hi! link typescriptObjectSpread Operator
hi! link typescriptOperator Operator
hi! link typescriptPredefinedType Type
hi! link typescriptTernaryOp Operator
hi! link typescriptTypeAnnotation Special
hi! link typescriptTypeCast Operator
hi! link typescriptUnaryOp Operator
hi! link typescriptVariable Keyword
14 changes: 14 additions & 0 deletions after/syntax/vim.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'vim'
finish
endif

hi! link vimAutoCmdSfxList DraculaCyanItalic
hi! link vimAutoEventList DraculaCyanItalic
hi! link vimEnvVar DraculaPurple
hi! link vimFunction DraculaGreen
hi! link vimHiBang DraculaPink
hi! link vimOption DraculaCyanItalic
hi! link vimSetMod DraculaPink
hi! link vimSetSep Delimiter
hi! link vimUserAttrbCmpltFunc DraculaGreen
hi! link vimUserFunc DraculaGreen
12 changes: 12 additions & 0 deletions after/syntax/yaml.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if ! exists('b:current_syntax') || b:current_syntax !=# 'yaml'
finish
endif

hi! link yamlAlias DraculaGreenItalicUnderline
hi! link yamlAnchor DraculaPinkItalic
hi! link yamlBlockMappingKey DraculaCyan
hi! link yamlFlowCollection DraculaPink
hi! link yamlFlowIndicator Delimiter
hi! link yamlNodeTag DraculaPink
hi! link yamlPlainScalar DraculaYellow

Loading

0 comments on commit b34882b

Please sign in to comment.