From b45b04dc57d9cf707879c8c41e9f71d7f869c3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20H=C3=A5land?= Date: Tue, 23 Feb 2021 23:35:26 +0100 Subject: [PATCH] feat(save): remove dead code to prevent nil value on save `get_config()` is removed and replaced by `get_term_config()` and `get_mark_config()` --- lua/harpoon/init.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lua/harpoon/init.lua b/lua/harpoon/init.lua index e3c9ec7..4bb4387 100644 --- a/lua/harpoon/init.lua +++ b/lua/harpoon/init.lua @@ -85,16 +85,6 @@ function expand_dir(config) end M.save = function() - local term_config = terminals.get_config() - local mark_config = mark.get_config() - - if not harpoon_config.projects[cwd] then - harpoon_config.projects[cwd] = {} - end - - harpoon_config.projects[cwd].term = term_config - harpoon_config.projects[cwd].mark = mark_config - Path:new(cache_config):write(vim.fn.json_encode(harpoon_config), 'w') end