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). " 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
@ -145,6 +146,7 @@ if exists('g:loaded_nvim_treesitter')
" 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: {{{
" A completion engine plugin for neovim written in Lua. " A completion engine plugin for neovim written in Lua.