From b3b19c488dfd8688fb3813f553b509cd87ad8462 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 18 Jan 2023 12:09:21 +0100 Subject: feat: improve lazy configuration on how loading plugins --- lua/alpha/plugins/refactoring.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/alpha/plugins/refactoring.lua') diff --git a/lua/alpha/plugins/refactoring.lua b/lua/alpha/plugins/refactoring.lua index c8bf7fc..349cc63 100644 --- a/lua/alpha/plugins/refactoring.lua +++ b/lua/alpha/plugins/refactoring.lua @@ -4,7 +4,11 @@ return { { "nvim-lua/plenary.nvim" }, { "nvim-treesitter/nvim-treesitter" }, }, + keys = { { "rr", function() + require("telescope").extensions.refactoring.refactors() + end, mode = { "n", "v" } } }, config = function() require("refactoring").setup({}) + require("telescope").load_extension("refactoring") end } -- cgit v1.2.3