kaicataldo / material.vim

🎨 A port of the Material color scheme for Vim/Neovim
MIT License
610 stars 71 forks source link

Only use Neovim v0.8-style Treesitter highlight groups in Neovim v0.8+ #71

Closed cpmsmith closed 1 year ago

cpmsmith commented 1 year ago

This un-reverts #69 without causing #70 again, by using has('nvim-0.8') to ensure the new highlight groups will be supported before setting them.

I've checked Vim 8.2 to confirm this no longer throws errors, and Neovim 0.8.1 to confirm it uses the new highlight groups.

Note: I've set it up to only set the new or old highlight groups depending on Nvim version, which is a slight change.

kaicataldo commented 1 year ago

Awesome, thank you!