folke / twilight.nvim

🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Way to not dim comment above function

duarm opened this issue · comments

commented

my setup for twilight is pretty basic, just highlight the current function

require("twilight").setup {
	expand = {
		"function_definition",
	},
}

I would like to not dim the comment above my functions
image

is this achievable in some way? if not, perhaps a neighbour match, when I matches a node from 'expand', it tries to expand more with a 'expand_neighbour', or a dim blacklist, I wouldn't mind if my comments were not dimmed.