From 19b7873e02d8d1c5814dc7f091905e39e799c9e6 Mon Sep 17 00:00:00 2001 From: Thomas Sindt Date: Mon, 9 Mar 2026 14:17:30 +0100 Subject: [PATCH] keybindings --- lua/core/keymaps.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua index 313cfcc..9ed2291 100644 --- a/lua/core/keymaps.lua +++ b/lua/core/keymaps.lua @@ -14,3 +14,15 @@ map("n", "", "j", opts) map("n", "", "k", opts) map("n", "", "l", opts) +map("n", "", ":w", {}) +map("n", "", ":q", {}) +map("n", "cd", ":Ex", {}) + +-- Use leader+h and leader+l to move between windows +vim.keymap.set("n", "h", function() + vim.cmd("wincmd h") +end, { desc = "Move left" }) +vim.keymap.set("n", "l", function() + vim.cmd("wincmd l") +end, { desc = "Move right" }) +