material.nvim icon indicating copy to clipboard operation
material.nvim copied to clipboard

tree-sitter highlights broken since introduction of Neovim (nightly) default colourscheme

Open mrcjkb opened this issue 2 years ago • 1 comments

Note: I just wanted to open this for reference, and am not asking for a fix, as I am on neovim nightly :smile:


Hey :wave:

I've noticed some broken tree-sitter highlighting and git bisected it to https://github.com/neovim/neovim/pull/26334.

Specifically, Neovim used to highlight according to the last match in the highlights.scm file.

Before the PR:

Notice how spec matches @variable.haskell last and is highlighted accordingly

treesitter

After the PR:

Now spec is highlighted as @function.haskell

image

I've tested it with another coluorscheme (catppuccin), and cannot reproduce the behaviour:

catppuccin

So it appears to be specific to this plugin.

mrcjkb avatar Dec 15 '23 20:12 mrcjkb

This is because this plugin doesn't define all tree-sitter highlight groups, falling back to Neovim's defaults (many of which are currently undefined on nightly).

mrcjkb avatar Dec 15 '23 21:12 mrcjkb

Sorry, I had some exams so I didn't have time to respond to issues earlier

marko-cerovac avatar Jan 22 '24 22:01 marko-cerovac

Sorry, I had some exams so I didn't have time to respond to issues earlier

No worries. Hope they went well :smile:

Thanks for maintaining this awesome colorscheme!

mrcjkb avatar Jan 22 '24 22:01 mrcjkb