nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

feature: option to enable refactor.nvim's telescope extension

Open MattSturgeon opened this issue 1 year ago • 3 comments

refactoring.nvim includes a Telescope extension that can be enabled using

extraConfigLuaPre = /* lua */ ''
  -- load refactoring Telescope extension
  require("telescope").load_extension("refactoring")
'';

And used in keymaps as follows:

keymps = [
  {
    mode = "n";
    key = "<leader>rr";
    action = /* lua */ ''
      function() require("telescope").extensions.refactoring.refactors() end
    '';
    lua = true;
    options.desc = "Select refactoring option";
  }
];

It'd be great if plugins.refactoring had options to configure this

Related

Perhaps plugins.telescope.enabledExtensions could be made public or an plugins.telescope.extraExtensions could be introduced to handle other unsupported telescope extensions?

MattSturgeon avatar Mar 06 '24 17:03 MattSturgeon