From b32435a2f5d7caae815678e87fdb5fee7a88dfb9 Mon Sep 17 00:00:00 2001 From: simrat39 Date: Thu, 22 Apr 2021 17:59:29 -0700 Subject: [PATCH] fix(rename): Unload state after rename lua keeps stuff 'cached' so the state does not get updated, therefore we need to manually unload it --- lua/symbols-outline/rename.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/symbols-outline/rename.lua b/lua/symbols-outline/rename.lua index 0401155..ebc599f 100644 --- a/lua/symbols-outline/rename.lua +++ b/lua/symbols-outline/rename.lua @@ -32,6 +32,9 @@ function M.rename() vim.lsp.util.apply_workspace_edit(result) end end) + -- kind of a hack but we want the state to always be the latest, so unload + -- this module for the next time it is called its gonna be F R E S H + package.loaded["symbols-outline.rename"] = nil end return M