keybindings

This commit is contained in:
2026-03-09 14:17:30 +01:00
parent 4957169193
commit 19b7873e02

View File

@@ -14,3 +14,15 @@ map("n", "<C-j>", "<C-w>j", opts)
map("n", "<C-k>", "<C-w>k", opts)
map("n", "<C-l>", "<C-w>l", opts)
map("n", "<C-s>", ":w<CR>", {})
map("n", "<C-q>", ":q<CR>", {})
map("n", "<leader>cd", ":Ex<CR>", {})
-- Use leader+h and leader+l to move between windows
vim.keymap.set("n", "<leader>h", function()
vim.cmd("wincmd h")
end, { desc = "Move left" })
vim.keymap.set("n", "<leader>l", function()
vim.cmd("wincmd l")
end, { desc = "Move right" })