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,6 +100,7 @@ if exists('g:loaded_nvim_treesitter')
|
||||||
" which in turn links to Identifer (white).
|
" which in turn links to Identifer (white).
|
||||||
hi! link TSTagAttribute DraculaGreenItalic
|
hi! link TSTagAttribute DraculaGreenItalic
|
||||||
|
|
||||||
|
if has('nvim-0.8')
|
||||||
" # Misc
|
" # Misc
|
||||||
hi! link @punctuation.delimiter Delimiter
|
hi! link @punctuation.delimiter Delimiter
|
||||||
hi! link @punctuation.bracket Normal
|
hi! link @punctuation.bracket Normal
|
||||||
|
@ -144,6 +145,7 @@ if exists('g:loaded_nvim_treesitter')
|
||||||
" 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 @tag.attribute DraculaGreenItalic
|
hi! link @tag.attribute DraculaGreenItalic
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
" nvim-cmp: {{{
|
" nvim-cmp: {{{
|
||||||
|
|
Loading…
Reference in a new issue