From 0f6cee92221dc517bd756083e260dd9373851b82 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 02:56:53 +0200 Subject: Moved files to common/ --- common/nvim/lua/plugins/harpoon.lua | 50 ------------------------------------- 1 file changed, 50 deletions(-) delete mode 100755 common/nvim/lua/plugins/harpoon.lua (limited to 'common/nvim/lua/plugins/harpoon.lua') diff --git a/common/nvim/lua/plugins/harpoon.lua b/common/nvim/lua/plugins/harpoon.lua deleted file mode 100755 index 8e842b3..0000000 --- a/common/nvim/lua/plugins/harpoon.lua +++ /dev/null @@ -1,50 +0,0 @@ -local M = {} - -function M.setup() - local ok, harpoon = pcall(require, "harpoon") - if not ok or not harpoon then - return false - end - - harpoon.setup({ - menu = { - width = vim.api.nvim_win_get_width(0) - 4, - }, - --keys = { - -- { "mt", function() require("harpoon.mark").toggle_file() end, desc = "Toggle File" }, - -- { "mm", function() require("harpoon.ui").toggle_quick_menu() end, desc = "Harpoon Menu" }, - -- { "mc", function() require("harpoon.cmd-ui").toggle_quick_menu() end, desc = "Command Menu" }, - -- --{ "1", function() require("harpoon.ui").nav_file(1) end, desc = "File 1" }, - -- --{ "2", function() require("harpoon.ui").nav_file(2) end, desc = "File 2" }, - -- --{ "3", function() require("harpoon.term").gotoTerminal(1) end, desc = "Terminal 1" }, - -- --{ "4", function() require("harpoon.term").gotoTerminal(2) end, desc = "Terminal 2" }, - -- --{ "5", function() require("harpoon.term").sendCommand(1,1) end, desc = "Command 1" }, - -- --{ "6", function() require("harpoon.term").sendCommand(1,2) end, desc = "Command 2" }, - }) - - -- Set up keymaps safely - local function safe_keymap(mode, lhs, rhs, opts) - local opts_with_noremap = vim.tbl_extend('force', {noremap = true, silent = true}, opts or {}) - vim.keymap.set(mode, lhs, rhs, opts_with_noremap) - end - - safe_keymap("n", "ma", function() require('harpoon.mark').add_file() end, { desc = "Harpoon: Add file" }) - safe_keymap("n", "mt", function() require('harpoon.mark').toggle_file() end, { desc = "Harpoon: Toggle file" }) - safe_keymap("n", "mq", function() require('harpoon.ui').toggle_quick_menu() end, { desc = "Harpoon: Toggle quick menu" }) - safe_keymap("n", "mh", function() require('harpoon.ui').nav_file(1) end, { desc = "Harpoon: Navigate to file 1" }) - safe_keymap("n", "mj", function() require('harpoon.ui').nav_file(2) end, { desc = "Harpoon: Navigate to file 2" }) - safe_keymap("n", "mk", function() require('harpoon.ui').nav_file(3) end, { desc = "Harpoon: Navigate to file 3" }) - safe_keymap("n", "ml", function() require('harpoon.ui').nav_file(4) end, { desc = "Harpoon: Navigate to file 4" }) - - return true -end - -return M --- ---vim.keymap.set("n", "a", mark.add_file) ---vim.keymap.set("n", "", ui.toggle_quick_menu) --- ---vim.keymap.set("n", "", function() ui.nav_file(1) end) ---vim.keymap.set("n", "", function() ui.nav_file(2) end) ---vim.keymap.set("n", "", function() ui.nav_file(3) end) ---vim.keymap.set("n", "", function() ui.nav_file(4) end) -- cgit v1.2.3