aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/harpoon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/harpoon.lua')
-rw-r--r--lua/alpha/harpoon.lua44
1 files changed, 0 insertions, 44 deletions
diff --git a/lua/alpha/harpoon.lua b/lua/alpha/harpoon.lua
deleted file mode 100644
index 78e6e9b..0000000
--- a/lua/alpha/harpoon.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local M = {}
-
--- changing this values will require re-compile packer
-local terms = vim.g.harpoon_terms or 3
-local quick_binds = vim.g.harpoon_quick_binds or 5
-
-M.keymaps = {
- { "<leader>ss" },
- { "<leader>sa" },
-}
-
-for i = 1, terms do
- table.insert(M.keymaps, { string.format("<leader><leader>%s", i) })
-end
-
-for i = 1, quick_binds do
- table.insert(M.keymaps, { string.format("<leader>%s", i) })
-end
-
-M.setup = function()
- require("harpoon").setup()
-
- vim.keymap.set(
- "n",
- "<leader>ss",
- require("harpoon.ui").toggle_quick_menu,
- { noremap = true, silent = true, expr = false }
- )
- vim.keymap.set("n", "<leader>sa", require("harpoon.mark").add_file, { noremap = true, silent = true, expr = false })
-
- for i = 1, terms do
- vim.keymap.set("n", string.format("<leader><leader>%s", i), function()
- require("harpoon.term").gotoTerminal(i)
- end, { noremap = true, silent = true, expr = false })
- end
-
- for i = 1, quick_binds do
- vim.keymap.set("n", string.format("<leader>%s", i), function()
- require("harpoon.ui").nav_file(i)
- end, { noremap = true, silent = true, expr = false })
- end
-end
-
-return M