fix(rename): Unload state after rename

lua keeps stuff 'cached' so the state does not get updated, therefore we
need to manually unload it
This commit is contained in:
simrat39
2021-04-22 17:59:29 -07:00
parent 78109f5741
commit b32435a2f5

View File

@@ -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