TabbyML/vim-tabby

Feature request: remove internal dependency on <C-R> mapping

Opened this issue · 0 comments

I just finished debugging my system (AstroNvim + tabby) to make the tabby completion work.

After seeing the hint in the README.md and the plugin docs, I checked by running:

:verbose imap <C-R>

And found out that it was mapped to which-key.nvim.

In insert mode, this binding is added dynamically by which-key to get a list of the registers. I never used it but it can be useful sometime.

I tried many ways to resolve this, and ended up disabling which-key's registers feature by adding .config/nvim/lua/plugins/which-key.nvim:

-- lua/plugins/which-key.lua
return {
  {
    "folke/which-key.nvim",
    opts = {
      plugins = {
        registers = false,
      },
    },
  },
}

This works but (a) is fragile as other extensions may reuse the later, and (b) blocks the registers feature that I now know exists.

It would be great to no longer depend on internally.