From fb6e43b07bd2d5ee78a4e89fe0e052c96dcee24c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Tue, 13 Feb 2024 22:19:23 +0545 Subject: [PATCH] feat(nvim): add harpoon keymap to clear all the marks --- config/nvim/lua/plugins/extras/editor/harpoon.lua | 1 + config/nvim/lua/plugins/extras/util/dotfyle.lua | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 config/nvim/lua/plugins/extras/util/dotfyle.lua diff --git a/config/nvim/lua/plugins/extras/editor/harpoon.lua b/config/nvim/lua/plugins/extras/editor/harpoon.lua index 7773508d..e28df367 100644 --- a/config/nvim/lua/plugins/extras/editor/harpoon.lua +++ b/config/nvim/lua/plugins/extras/editor/harpoon.lua @@ -14,6 +14,7 @@ table.insert(keys, { "[H", function() require("harpoon"):list():prev() end, desc table.insert(keys, { "", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" }) table.insert(keys, { "", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" }) +table.insert(keys, { "hc", function() require("harpoon"):list():clear() end, desc = "Clear all Files" }) -- stylua: ignore end return { diff --git a/config/nvim/lua/plugins/extras/util/dotfyle.lua b/config/nvim/lua/plugins/extras/util/dotfyle.lua new file mode 100644 index 00000000..7426a6d6 --- /dev/null +++ b/config/nvim/lua/plugins/extras/util/dotfyle.lua @@ -0,0 +1,4 @@ +return { + "creativenull/dotfyle-metadata.nvim", + cmd = { "DotfyleGenerate", "DotfyleOpen" }, +}