From 074a6b34952f2d14be196c217a3995749670f627 Mon Sep 17 00:00:00 2001 From: Adrian Trunzo Date: Fri, 6 Aug 2021 11:50:31 -0400 Subject: [PATCH] Highlight tag attributes via tree-sitter. (#255) * Highlight tag attributes via tree sitter. * Comments about tree-sitter hightlight groups. --- after/plugin/dracula.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/after/plugin/dracula.vim b/after/plugin/dracula.vim index 61eaf5c..b07898c 100644 --- a/after/plugin/dracula.vim +++ b/after/plugin/dracula.vim @@ -62,6 +62,11 @@ if has('nvim-0.5') && luaeval("pcall(require, 'gitsigns')") endif " }}} " Tree-sitter: {{{ +" The nvim-treesitter library defines many global highlight groups that are +" linked to the regular vim syntax highlight groups. We only need to redefine +" those highlight groups when the defaults do not match the dracula +" specification. +" https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim if exists('g:loaded_nvim_treesitter') " # Misc hi! link TSPunctSpecial Special @@ -89,6 +94,9 @@ if exists('g:loaded_nvim_treesitter') hi! link TSTitle DraculaYellow hi! link TSLiteral DraculaYellow hi! link TSURI DraculaYellow + " HTML and JSX tag attributes. By default, this group is linked to TSProperty, + " which in turn links to Identifer (white). + hi! link TSTagAttribute DraculaGreenItalic endif " }}}