vim-matchup icon indicating copy to clipboard operation
vim-matchup copied to clipboard

Incorrect matching with ruby-lang & enabled Treesitter

Open sun0f3 opened this issue 3 years ago • 4 comments
trafficstars

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 image

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

sun0f3 avatar Nov 22 '21 20:11 sun0f3

I'm sorry, but your fix doesn't help how can I help you to investigate issue

sun0f3 avatar Dec 16 '21 08:12 sun0f3

Can you please provide a minimal working example that demonstrates the issue? I cannot reproduce it with given configuration.

andymass avatar Dec 16 '21 13:12 andymass

Same issue, ruby. Matching corrupts when changing keyword. Peek 2022-07-19 12-31

Configs https://github.com/RamiGaggi/dotfiles/blob/f097d6a376dec8c8901dbe1bc2f0c70f9cab8816/nvim/init.lua#L250-L252

      matchup = {
        enable = true
      }

RamilGN avatar Jul 19 '22 09:07 RamilGN

@RamiGaggi Reproduced, I guess it is due to some stale skip query result, will check.

andymass avatar Jul 23 '22 20:07 andymass