Skip to content

Migrate legacy treesitter captures and drop discontinued plugin themes - #46

Merged
wadackel merged 2 commits into
mainfrom
drop-legacy-captures-plugins
Aug 29, 2026
Merged

wadackel merged 2 commits into
mainfrom
drop-legacy-captures-plugins

Conversation

@wadackel

Copy link
Copy Markdown
Owner

Summary

Namespace cleanup for the highlight definitions — no color value changes on any surviving group (verified byte-for-byte by the golden test and a sorted diff against the base commit).

Treesitter captures: nvim-treesitter dropped the legacy capture names in its 2024-01 upstream alignment, so current parsers never emit them. @string.regex, @parameter, and @include are renamed to @string.regexp, @variable.parameter, and @keyword.import with identical colors. The five @text.* groups are deleted outright — their @markup.* successors were already defined, so they were duplicate legacy names. On nvim 0.9.x the old names fall back to core default links; on current Neovim they were simply dead definitions (nvim_get_hl returns nothing for them).

Discontinued plugin themes: removes highlight groups for plugins whose upstreams have formally ended — null-ls (repository deleted; successor none-ls), dressing.nvim (archived; successor snacks.input), defx.nvim with defx-icons/defx-git (development stopped in favor of ddu.vim), and vimfiler. The defx removal also retires the 16-color defxicon* palette and the generated g:defx_icons_* dictionaries. Affected setups fall back to default colors; nothing breaks.

easymotion and vim-clap are intentionally kept — neither has a discontinuation notice and vim-clap is actively developed. FloatTitle, which was filed under the dressing.nvim comment but is a core nvim highlight group (0.9+), survives unchanged and now lives next to the other float groups.

Net: −143 lines.

Test plan

  • just check (fmt + clippy -D warnings + all 14 tests, golden test included)
  • just fresh-check — regenerated outputs match the committed files
  • Sorted diff vs base: the only added lines in colors/dogrun.vim are the three renamed groups with identical guifg/ctermfg values
  • CI green

References

🤖 Generated with Claude Code

https://claude.ai/code/session_01YFHQwnUznbUjeJepbqUsj1

wadackel and others added 2 commits August 29, 2026 13:21
nvim-treesitter dropped the legacy capture names in the 2024-01
upstream alignment; current parsers only emit the new ones, so the old
groups have been dead weight on modern setups. @string.regex,
@parameter, and @include become @string.regexp, @variable.parameter,
and @keyword.import with identical colors. The five @text.* groups are
deleted outright — their @markup.* successors were already defined, so
they were duplicate legacy names, not renames. On nvim 0.9.x the old
names fall back to core default links; only 0.10+ pinned to a
pre-rename nvim-treesitter loses styling for them.

The nvim-0.8.0 block now carries 39 groups, so the writer_output
threshold moves from >= 40 to >= 35.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFHQwnUznbUjeJepbqUsj1
Removes highlight groups for plugins whose upstreams have formally
ended: null-ls (repository deleted; successor none-ls), dressing.nvim
(archived; successor snacks.input), defx.nvim with defx-icons/defx-git
(development stopped in favor of ddu.vim), and vimfiler (same). The
defx removal also retires the 16-color defxicon palette and the
generated g:defx_icons_* dictionaries. easymotion and vim-clap stay:
neither has a discontinuation notice and vim-clap is actively
developed.

FloatTitle survives the dressing section removal — it is a core nvim
highlight group (0.9+) that was merely filed under the dressing
comment; it now lives next to the other float groups, unchanged.

Affected plugins fall back to default colors; nothing breaks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFHQwnUznbUjeJepbqUsj1
@wadackel
wadackel merged commit 044398f into main Aug 29, 2026
1 check passed
@wadackel
wadackel deleted the drop-legacy-captures-plugins branch August 29, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant