Add version check for neovim

Add compatibility with older neovim to support older version of
nvim-treesitter
This commit is contained in:
yuys13 2022-10-18 12:52:11 +09:00
parent ed78f2f6b1
commit 84adf19f1d

View file

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