From 7ca4d07089ebc2d58ba10d738044d22544bfb015 Mon Sep 17 00:00:00 2001 From: Jesse Leite Date: Wed, 24 Mar 2021 11:15:49 -0400 Subject: [PATCH] Prime does not suck, that much. --- lua/harpoon/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/harpoon/init.lua b/lua/harpoon/init.lua index ff38401..8d1e261 100644 --- a/lua/harpoon/init.lua +++ b/lua/harpoon/init.lua @@ -93,7 +93,9 @@ local function expand_dir(config) for k in pairs(projects) do local expanded_path = Path.new(k):expand() projects[expanded_path] = projects[k] - projects[k] = nil + if expanded_path ~= k then + projects[k] = nil + end end return config