mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-17 19:40:23 +00:00
Merge pull request #15 from asbjornhaland/dead_code
feat(save): remove dead code to prevent nil value on save
This commit is contained in:
commit
9fbc24280d
@ -85,16 +85,6 @@ function expand_dir(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
M.save = function()
|
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')
|
Path:new(cache_config):write(vim.fn.json_encode(harpoon_config), 'w')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user