From 5f78b7f5fd253588c89568e0dce351121859565f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 30 Jan 2024 12:58:55 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20added=20ke?= =?UTF-8?q?ymaps=20for=20harpoon=20when=20moving=20to=20next=20and=20prev?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/editor/harpoon.lua | 3 +++ .config/nvim/lua/plugins/extras/util/smart-splits.lua | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/editor/harpoon.lua b/.config/nvim/lua/plugins/extras/editor/harpoon.lua index 203d1051..7773508d 100644 --- a/.config/nvim/lua/plugins/extras/editor/harpoon.lua +++ b/.config/nvim/lua/plugins/extras/editor/harpoon.lua @@ -11,6 +11,9 @@ table.insert(keys, { "hf", "Telescope harpoon marks", 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, { "", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" }) +table.insert(keys, { "", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" }) -- stylua: ignore end return { diff --git a/.config/nvim/lua/plugins/extras/util/smart-splits.lua b/.config/nvim/lua/plugins/extras/util/smart-splits.lua index feebab43..67706ac2 100644 --- a/.config/nvim/lua/plugins/extras/util/smart-splits.lua +++ b/.config/nvim/lua/plugins/extras/util/smart-splits.lua @@ -11,9 +11,5 @@ return { { "", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down" }, { "", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up" }, { "", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right" }, - { "", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left" }, - { "", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down" }, - { "", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up" }, - { "", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right" }, }, }