keybindings
This commit is contained in:
@@ -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" })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user