⚙️ config(nvim): added keymaps for harpoon when moving to next and prev file

This commit is contained in:
Sergio Laín 2024-01-30 12:58:55 +01:00
parent 3fce65221f
commit 5f78b7f5fd
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 3 additions and 4 deletions

View file

@ -11,6 +11,9 @@ table.insert(keys, { "<leader>hf", "<cmd>Telescope harpoon marks<CR>", desc = "F
table.insert(keys, { "]H", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" })
table.insert(keys, { "[H", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" })
table.insert(keys, { "<C-A-l>", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" })
table.insert(keys, { "<C-A-h>", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" })
-- stylua: ignore end
return {

View file

@ -11,9 +11,5 @@ return {
{ "<C-j>", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down" },
{ "<C-k>", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up" },
{ "<C-l>", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right" },
{ "<C-A-h>", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left" },
{ "<C-A-j>", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down" },
{ "<C-A-k>", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up" },
{ "<C-A-l>", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right" },
},
}