Skip to content

Commit f44f437

Browse files
committed
fix(hues): stop highlighting @none
Details: - On 'nvim-treesitter' (the source of `@none` group) `master` branch the group is described as "completely disable the highlight". The way to achieve that is to link to `Normal`. However, on 'nvim-treesitter' `main` branch (soon-to-be-default) this group is missing from documentation and is meant to "do nothing" (as apparently it was meant to on `master` branch). - Some tree-sitter parser+query combinations use it as initial "layer" before applying differnt highlight groups on top. This results into parts of syntax highlighting stand out from cursorline, which is not great. See #1256.
1 parent db98e07 commit f44f437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/mini/hues.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ MiniHues.apply_palette = function(palette, plugins)
726726
hi('@tag', { link='Tag' })
727727

728728
hi('@symbol', { link='Keyword' })
729-
hi('@none', { link='Normal' })
729+
hi('@none', {})
730730

731731
-- Semantic tokens
732732
if vim.fn.has('nvim-0.9') == 1 then

0 commit comments

Comments
 (0)