rktjmp/lush.nvim

How to specify treesitter highlight groups?

antistic opened this issue · 2 comments

:h treesitter-highlight-groups describes highlight groups such as @comment @comment.lua.

Lua doesn't allow symbols like @ and . in names, so you can't do:

local lush = require('lush')
return lush(function()
	return {
		@comment { },
		@comment.lua { },
	}
end)

For @comment the workaround is using the default link TSComment or Comment instead, but I can't work out if there's a similar workaround for language specific groups.

Dupe #107

See #109 for fix.