Add keymaps
This commit is contained in:
parent
5008656a74
commit
a67c7532cb
3 changed files with 13 additions and 1 deletions
11
lua/core/keymaps.lua
Normal file
11
lua/core/keymaps.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local opts = { noremap = true, silent = true }
|
||||
|
||||
--Resize with arrows
|
||||
vim.keymap.set('n', '<Up>', ':resize +2<CR>', opts)
|
||||
vim.keymap.set('n', '<Down>', ':resize -2<CR>', opts)
|
||||
vim.keymap.set('n', '<Left>', ':vertical resize -2<CR>', opts)
|
||||
vim.keymap.set('n', '<Right>', ':vertical resize +2<CR>', opts)
|
||||
|
||||
--Stay in indent mode
|
||||
vim.keymap.set('v', '<', '<gv', opts)
|
||||
vim.keymap.set('v', '>', '>gv', opts)
|
||||
Loading…
Add table
Add a link
Reference in a new issue