Add custom keymaps

pull/624/head
Markus Ullmann 2 years ago committed by Markus Ullmann
parent 7af594fd31
commit b4273a1f52

@ -680,5 +680,7 @@ cmp.setup {
},
}
require("keymaps")
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et

@ -0,0 +1,7 @@
local map = vim.keymap.set
-- Navigating splits
map({"n", "i", "v"}, "<c-k>", ":wincmd k<CR>", {desc = "Select upper split"})
map({"n", "i", "v"}, "<c-j>", ":wincmd j<CR>", {desc = "Select lower split"})
map({"n", "i", "v"}, "<c-h>", ":wincmd h<CR>", {desc = "Select left split"})
map({"n", "i", "v"}, "<c-l>", ":wincmd l<CR>", {desc = "Select right split"})
Loading…
Cancel
Save