diff options
| author | Aotrix <[email protected]> | 2026-03-21 14:51:33 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-03-21 14:51:33 +0100 |
| commit | b2dd5953b3899f30f20e2203c91dcf58cd8435bf (patch) | |
| tree | f5155bb77a8d2300dfd7283d1a639351e1ba8f02 | |
| parent | 8babdb0b527f088a3f9622bb88c54c5c4f2dd3b2 (diff) | |
I love neovim tabs
| -rw-r--r-- | lua/aotrix/plugins/harpoon.lua | 20 | ||||
| -rw-r--r-- | lua/aotrix/remap.lua | 5 |
2 files changed, 4 insertions, 21 deletions
diff --git a/lua/aotrix/plugins/harpoon.lua b/lua/aotrix/plugins/harpoon.lua deleted file mode 100644 index 6127ca9..0000000 --- a/lua/aotrix/plugins/harpoon.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - 'ThePrimeagen/harpoon', - branch = "harpoon2", - dependencies = { 'nvim-lua/plenary.nvim' }, - config = function() - local harpoon = require("harpoon") - harpoon.setup({ - settings = { - -- sets the marks upon calling `toggle` on the ui, instead of require `:w`. - save_on_toggle = true - }, - }) - vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end) - vim.keymap.set("n", "<leader>hv", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) - vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end) - vim.keymap.set("n", "<C-l>", function() harpoon:list():select(2) end) - vim.keymap.set("n", "<C-g>", function() harpoon:list():select(3) end) - vim.keymap.set("n", "<C-m>", function() harpoon:list():select(4) end) - end -} diff --git a/lua/aotrix/remap.lua b/lua/aotrix/remap.lua index 72a854b..52e9771 100644 --- a/lua/aotrix/remap.lua +++ b/lua/aotrix/remap.lua @@ -15,4 +15,7 @@ vim.keymap.set({"n", "v"}, "<leader>y", [["+y]]) vim.keymap.set("n", "<leader>Y", [["+Y]]) -- Remove <C-c> because it is not fast enough -vim.keymap.set({'n', 'i', 'v'}, '<C-c>', '<nop>') +vim.keymap.set({"n", "i", "v"}, '<C-c>', '<nop>') + +vim.keymap.set("n", "<C-h>", "gT") +vim.keymap.set("n", "<C-l>", "gt") |
