From 855a88b5320de91a55d446d4b277a351d79e8c04 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 29 Jul 2023 14:31:51 +0200 Subject: [PATCH] fix: user lua conf reloading fails The cache should be invalidated. This fix does not work 100%, because, e.g., there are other configs hiding deeper under lua/config/ directory. A restart is the best way to reload the config. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 1cd6815..d3c0534 100644 --- a/init.lua +++ b/init.lua @@ -43,6 +43,7 @@ for _, file_name in ipairs(core_conf_files) do vim.cmd(source_cmd) else local module_name, _ = string.gsub(file_name, "%.lua", "") + package.loaded[module_name] = nil require(module_name) end end