Skip to content

Commit

Permalink
Resize splits keymaps
Browse files Browse the repository at this point in the history
M(Alt/Option)-hjkl resizes splits

Signed-off-by: Vlad Gheorghiu <vsoftco@gmail.com>
  • Loading branch information
vsoftco committed Jun 17, 2024
1 parent 7ce6a09 commit bca16f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ M.generic = {
["]b"] = { "<cmd> bnext <CR>", { desc = "Buffer next" } },
["[B"] = { "<cmd> bfirst <CR>", { desc = "Buffer first" } },
["]B"] = { "<cmd> blast <CR>", { desc = "Buffer last" } },

["<M-h>"] = { "<C-w>5<", { desc = "Resize split right" } },
["<M-l>"] = { "<C-w>5>", { desc = "Resize split left" } },
["<M-k>"] = { "<C-w>5-", { desc = "Resize split up" } },
["<M-j>"] = { "<C-w>5+", { desc = "Resize split down" } },
},
[{ "n", "i", "v" }] = {
["<Up>"] = { "<Nop>" },
Expand Down

0 comments on commit bca16f4

Please sign in to comment.