nvim-treesitter / nvim-treesitter-refactor

Refactor module for nvim-treesitter
Apache License 2.0
407 stars 25 forks source link

Add keymap description option #43

Closed nat-418 closed 1 year ago

nat-418 commented 1 year ago

nvim-treesitter-refactor keymaps cannot be described as in nvim-treesitter-textobjects or using vim.keymap.set mappings.

It would be nice if nvim-treesitter-refactor supported the same structure as nvim-treesitter-textobjects, e.g.,

keymaps = {
  [']u'] = {
    action = goto_next_usage,
    desc = 'Next usage'
  }
}

Implementing this feature will provide better integration with the Neovim ecosystem of plugins like which-key and legendary.