projekt0n / github-nvim-theme

GitHub's Neovim themes
MIT License
2.11k stars 106 forks source link

fix(syntax): incorrect highlight for `Delimiter` #331

Closed tmillr closed 3 months ago

tmillr commented 3 months ago

Neovim 0.10 changes or removes some of the default links for builtin hl groups (e.g. "base" groups). As such, Delimiter (and its dependents) no longer link to Special. We rely on the default links for some of these builtin hl groups.

In group/syntax.lua, restore these default links by setting/recreating them explicitly instead of relying on the defaults.

This commit addresses the groups in group/syntax.lua, but there may be other files or groups that need to be similarly addressed.

Fixes #329