Skip to content

fix(lazy): stop disabling native matchparen and matchit#7

Merged
binbandit merged 1 commit into
mainfrom
fix/reenable-matchparen-matchit
Jun 10, 2026
Merged

fix(lazy): stop disabling native matchparen and matchit#7
binbandit merged 1 commit into
mainfrom
fix/reenable-matchparen-matchit

Conversation

@binbandit

@binbandit binbandit commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

lua/blak/lazy.lua disabled the built-in matchparen and matchit plugins in lazy.nvim's performance.rtp.disabled_plugins. The startup win is negligible (~1ms), and the cost is invisible: stock Neovim highlights the matching bracket under the cursor and ships extended % matching, and Blak silently didn't — with nothing in core replacing either. For a distro whose manifesto opens with "we use native Neovim first" and "we do not hide configuration behind magic", this was a contract violation.

This re-enables both. The remaining disabled plugins are kept deliberately: netrwPlugin is explicitly replaced by Oil, and gzip/tarPlugin/tohtml/tutor/zipPlugin are genuinely dead weight. A comment in lazy.lua now records that rationale.

Per the contract this is a visible default change, so it ships with a NEWS.md entry (new Unreleased section) that includes the opt-out for users who prefer the old behavior: vim.g.loaded_matchparen = 1 / vim.g.loaded_matchit = 1 in a hooks.before function (verified that hooks.before runs during config setup, before plugin bootstrap, so the guards take effect).

Validation

make validate passes. Neovim isn't available here for make smoke; manual check: start Blak, put the cursor on a bracket and confirm the match highlights, and check % jumps across if/endif style pairs in a vim file.

Disabling them saved roughly a millisecond of startup but silently
removed behavior stock Neovim users expect: highlighting the matching
bracket and extended % matching. Nothing in core replaced either, which
contradicted the native-first contract. The remaining disabled plugins
are dead weight or explicitly replaced (netrw by Oil).

Documented in NEWS.md with the vim.g.loaded_* opt-out for users who
prefer them off.
@binbandit binbandit force-pushed the fix/reenable-matchparen-matchit branch from 074e041 to 1847bfc Compare June 10, 2026 01:25
@binbandit binbandit merged commit 86ed793 into main Jun 10, 2026
2 checks passed
@binbandit binbandit deleted the fix/reenable-matchparen-matchit branch June 10, 2026 01:30
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