Add custom keymaps
This commit is contained in:
parent
7af594fd31
commit
b4273a1f52
2
init.lua
2
init.lua
@ -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
|
||||
|
7
lua/keymaps.lua
Normal file
7
lua/keymaps.lua
Normal file
@ -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…
x
Reference in New Issue
Block a user