From 50cf0ee01229794d064d1b19d01fa3ee230e99a8 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Wed, 5 Jul 2023 07:50:35 +0530 Subject: [PATCH] fix: use the correct functions for keys for certain commands --- lua/config/keymaps.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 28fda5c..bc856a8 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -12,25 +12,23 @@ map("n", "", function() require("smart-splits").move_cursor_left() end, { desc = "Go to left window", remap = true }) map("n", "", function() - require("smart-splits").move_cursor_right() + require("smart-splits").move_cursor_down() end, { desc = "Go to lower window", remap = true }) map("n", "", function() require("smart-splits").move_cursor_up() end, { desc = "Go to upper window", remap = true }) map("n", "", function() - require("smart-splits").move_cursor_down() + require("smart-splits").move_cursor_right() end, { desc = "Go to right window", remap = true }) map("n", "", "BufferLineCyclePrev", { desc = "Prev buffer" }) map("n", "", "BufferLineCycleNext", { desc = "Next buffer" }) -map("n", "[b", "BufferLineCyclePrev", { desc = "Prev buffer" }) -map("n", "]b", "BufferLineCycleNext", { desc = "Next buffer" }) -- Resize window using arrow keys -map("n", "", "resize +2", { desc = "Increase window height" }) -map("n", "", "resize -2", { desc = "Decrease window height" }) -map("n", "", "vertical resize -2", { desc = "Decrease window width" }) -map("n", "", "vertical resize +2", { desc = "Increase window width" }) +map("n", "", "resize +2", { desc = "Increase window height" }) +map("n", "", "resize -2", { desc = "Decrease window height" }) +map("n", "", "vertical resize -2", { desc = "Decrease window width" }) +map("n", "", "vertical resize +2", { desc = "Increase window width" }) -- Move Lines map("v", "J", ":m '>+1gv=gv", { desc = "Move down" }) @@ -71,3 +69,5 @@ map("n", "d", "tabclose", { desc = "Close Tab" }) map("n", "[", "tabprevious", { desc = "Previous Tab" }) map("t", "", [[]], { desc = "Escape on terminal" }) + +map("n", "", "ggG", { desc = "Select all" })