feat(treesitter)!: use @foo.bar style highlight groups
nvim-treesitter has removed `TS*` highlight groups. Thus we need to use @foo.bar style highlight groups.
This commit is contained in:
parent
d7723a842a
commit
dbc09df252
1 changed files with 21 additions and 21 deletions
|
@ -69,34 +69,34 @@ endif
|
||||||
" https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim
|
" https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim
|
||||||
if exists('g:loaded_nvim_treesitter')
|
if exists('g:loaded_nvim_treesitter')
|
||||||
" # Misc
|
" # Misc
|
||||||
hi! link TSPunctSpecial Special
|
hi! link @punctuation.special Special
|
||||||
" # Constants
|
" # Constants
|
||||||
hi! link TSConstMacro Macro
|
hi! link @constant.macro Macro
|
||||||
hi! link TSStringEscape Character
|
hi! link @string.escape Character
|
||||||
hi! link TSSymbol DraculaPurple
|
hi! link @symbol DraculaPurple
|
||||||
hi! link TSAnnotation DraculaYellow
|
hi! link @annotation DraculaYellow
|
||||||
hi! link TSAttribute DraculaGreenItalic
|
hi! link @attribute DraculaGreenItalic
|
||||||
" # Functions
|
" # Functions
|
||||||
hi! link TSFuncBuiltin DraculaCyan
|
hi! link @function.builtin DraculaCyan
|
||||||
hi! link TSFuncMacro Function
|
hi! link @funcion.macro Function
|
||||||
hi! link TSParameter DraculaOrangeItalic
|
hi! link @parameter DraculaOrangeItalic
|
||||||
hi! link TSParameterReference DraculaOrange
|
hi! link @parameter.reference DraculaOrange
|
||||||
hi! link TSField DraculaOrange
|
hi! link @field DraculaOrange
|
||||||
hi! link TSConstructor DraculaCyan
|
hi! link @constructor DraculaCyan
|
||||||
" # Keywords
|
" # Keywords
|
||||||
hi! link TSLabel DraculaPurpleItalic
|
hi! link @label DraculaPurpleItalic
|
||||||
" # Variable
|
" # Variable
|
||||||
hi! link TSVariableBuiltin DraculaPurpleItalic
|
hi! link @variable.builtin DraculaPurpleItalic
|
||||||
" # Text
|
" # Text
|
||||||
hi! link TSStrong DraculaFgBold
|
hi! link @text.strong DraculaFgBold
|
||||||
hi! link TSEmphasis DraculaFg
|
hi! link @text.emphasis DraculaFg
|
||||||
hi! link TSUnderline Underlined
|
hi! link @text.underline Underlined
|
||||||
hi! link TSTitle DraculaYellow
|
hi! link @text.title DraculaYellow
|
||||||
hi! link TSLiteral DraculaYellow
|
hi! link @text.literal DraculaYellow
|
||||||
hi! link TSURI DraculaYellow
|
hi! link @text.uri DraculaYellow
|
||||||
" HTML and JSX tag attributes. By default, this group is linked to TSProperty,
|
" HTML and JSX tag attributes. By default, this group is linked to TSProperty,
|
||||||
" which in turn links to Identifer (white).
|
" which in turn links to Identifer (white).
|
||||||
hi! link TSTagAttribute DraculaGreenItalic
|
hi! link @tag.attribute DraculaGreenItalic
|
||||||
endif
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
" nvim-cmp: {{{
|
" nvim-cmp: {{{
|
||||||
|
|
Loading…
Reference in a new issue