alternative to matchparen neovim plugin
// readme
Matchparen.nvim
An alternative to the default neovim matchparen plugin
matchparen.nvim fixes several bugs in the default plugin, including:
- Wrong highlights of matched characters in comments and strings in files with TreeSitter syntax highlighting
- Highlighting is properly disabled for plugins like hop.nvim
- Doesn’t recolor characters in floating windows
- And some other
It is also much faster in some situations and doesn’t cause cursor movement lag.
[!IMPORTANT] Highlighting should work as expected, but jumping to highlighted brackets with
%or text objects likei(,a[, etc. is not implemented yet, so it could work improperly when there are unmatched brackets in strings or comments inside highlighted brackets. You will have the same behavior with the default plugin.
📦 Installation
Here’s an example for the 💤lazy plugin manager. If you’re using a different plugin manager, please refer to its documentation for installation instructions.
require("lazy").setup({
performance = {
rtp = {
disabled_plugins = {
-- disable…