From ab5a35f4b9f55de310c931591b7db46d9d8181b0 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Sun, 12 May 2024 20:58:57 +0545 Subject: [PATCH] Update lua/lazyvim/plugins/extras/editor/refactoring.lua Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> --- lua/lazyvim/plugins/extras/editor/refactoring.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/editor/refactoring.lua b/lua/lazyvim/plugins/extras/editor/refactoring.lua index bcbb7f35..9704fc65 100644 --- a/lua/lazyvim/plugins/extras/editor/refactoring.lua +++ b/lua/lazyvim/plugins/extras/editor/refactoring.lua @@ -115,7 +115,11 @@ return { }, config = function(_, opts) require("refactoring").setup(opts) - require("telescope").load_extension("refactoring") + if LazyVim.has("telescope.nvim") then + LazyVim.on_load("telescope.nvim", function() + require("telescope").load_extension("refactoring") + end) + end end, }, }