Add version check for neovim
Add compatibility with older neovim to support older version of nvim-treesitter
This commit is contained in:
parent
ed78f2f6b1
commit
84adf19f1d
1 changed files with 46 additions and 44 deletions
|
@ -100,50 +100,52 @@ if exists('g:loaded_nvim_treesitter')
|
|||
" which in turn links to Identifer (white).
|
||||
hi! link TSTagAttribute DraculaGreenItalic
|
||||
|
||||
" # Misc
|
||||
hi! link @punctuation.delimiter Delimiter
|
||||
hi! link @punctuation.bracket Normal
|
||||
hi! link @punctuation.special Special
|
||||
" # Constants
|
||||
hi! link @constant Constant
|
||||
hi! link @constant.builtin Constant
|
||||
hi! link @constant.macro Macro
|
||||
hi! link @string.regex String
|
||||
hi! link @string.escape Character
|
||||
hi! link @symbol DraculaPurple
|
||||
hi! link @annotation DraculaYellow
|
||||
hi! link @attribute DraculaGreenItalic
|
||||
hi! link @namespace Structure
|
||||
" # Functions
|
||||
hi! link @function.builtin DraculaCyan
|
||||
hi! link @funcion.macro Function
|
||||
hi! link @parameter DraculaOrangeItalic
|
||||
hi! link @parameter.reference DraculaOrange
|
||||
hi! link @field DraculaOrange
|
||||
hi! link @property Normal
|
||||
hi! link @constructor DraculaCyan
|
||||
" # Keywords
|
||||
hi! link @label DraculaPurpleItalic
|
||||
hi! link @keyword.function DraculaCyan
|
||||
hi! link @keyword.operator Operator
|
||||
hi! link @exception DraculaPurple
|
||||
" # Variable
|
||||
hi! link @variable Normal
|
||||
hi! link @variable.builtin DraculaPurpleItalic
|
||||
" # Text
|
||||
hi! link @text Normal
|
||||
hi! link @text.strong DraculaFgBold
|
||||
hi! link @text.emphasis DraculaFg
|
||||
hi! link @text.underline Underlined
|
||||
hi! link @text.title DraculaYellow
|
||||
hi! link @text.literal DraculaYellow
|
||||
hi! link @text.uri DraculaYellow
|
||||
" # Tags
|
||||
hi! link @tag DraculaCyan
|
||||
hi! link @tag.delimiter Normal
|
||||
" HTML and JSX tag attributes. By default, this group is linked to TSProperty,
|
||||
" which in turn links to Identifer (white).
|
||||
hi! link @tag.attribute DraculaGreenItalic
|
||||
if has('nvim-0.8')
|
||||
" # Misc
|
||||
hi! link @punctuation.delimiter Delimiter
|
||||
hi! link @punctuation.bracket Normal
|
||||
hi! link @punctuation.special Special
|
||||
" # Constants
|
||||
hi! link @constant Constant
|
||||
hi! link @constant.builtin Constant
|
||||
hi! link @constant.macro Macro
|
||||
hi! link @string.regex String
|
||||
hi! link @string.escape Character
|
||||
hi! link @symbol DraculaPurple
|
||||
hi! link @annotation DraculaYellow
|
||||
hi! link @attribute DraculaGreenItalic
|
||||
hi! link @namespace Structure
|
||||
" # Functions
|
||||
hi! link @function.builtin DraculaCyan
|
||||
hi! link @funcion.macro Function
|
||||
hi! link @parameter DraculaOrangeItalic
|
||||
hi! link @parameter.reference DraculaOrange
|
||||
hi! link @field DraculaOrange
|
||||
hi! link @property Normal
|
||||
hi! link @constructor DraculaCyan
|
||||
" # Keywords
|
||||
hi! link @label DraculaPurpleItalic
|
||||
hi! link @keyword.function DraculaCyan
|
||||
hi! link @keyword.operator Operator
|
||||
hi! link @exception DraculaPurple
|
||||
" # Variable
|
||||
hi! link @variable Normal
|
||||
hi! link @variable.builtin DraculaPurpleItalic
|
||||
" # Text
|
||||
hi! link @text Normal
|
||||
hi! link @text.strong DraculaFgBold
|
||||
hi! link @text.emphasis DraculaFg
|
||||
hi! link @text.underline Underlined
|
||||
hi! link @text.title DraculaYellow
|
||||
hi! link @text.literal DraculaYellow
|
||||
hi! link @text.uri DraculaYellow
|
||||
" # Tags
|
||||
hi! link @tag DraculaCyan
|
||||
hi! link @tag.delimiter Normal
|
||||
" HTML and JSX tag attributes. By default, this group is linked to TSProperty,
|
||||
" which in turn links to Identifer (white).
|
||||
hi! link @tag.attribute DraculaGreenItalic
|
||||
endif
|
||||
endif
|
||||
" }}}
|
||||
" nvim-cmp: {{{
|
||||
|
|
Loading…
Reference in a new issue