vim-matchup
vim-matchup copied to clipboard
Incorrect matching with ruby-lang & enabled Treesitter
the problem happend with ruby code looks like this
def foo
some_func() if true
end
it works by default.
But after installing Tree-sitter support for ruby
:TSInstall ruby
it breaks

I tried to disable it with treesitter config - no effect
local present, ts_config = pcall(require, "nvim-treesitter.configs")
ts_config.setup {
matchup = {
enable = true, -- false also don't help
disable = { "ruby" },
},
}
after TSUninstall ruby it works again
What is the next step to investigate this problem?
version nvim 0.5.1
I'm sorry, but your fix doesn't help how can I help you to investigate issue
Can you please provide a minimal working example that demonstrates the issue? I cannot reproduce it with given configuration.
Same issue, ruby.
Matching corrupts when changing keyword.

Configs https://github.com/RamiGaggi/dotfiles/blob/f097d6a376dec8c8901dbe1bc2f0c70f9cab8816/nvim/init.lua#L250-L252
matchup = {
enable = true
}
@RamiGaggi Reproduced, I guess it is due to some stale skip query result, will check.