mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Update keymaps.lua
This commit is contained in:
parent
a3ec4c21f7
commit
874d44abbb
1 changed files with 4 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ local function map(mode, lhs, rhs, opts)
|
|||
end
|
||||
end
|
||||
|
||||
-- Esc Alternative Insert -> Normal
|
||||
map("i", "jk", "<ESC>", { desc = "For Insert -> Normal" })
|
||||
map("i", "kj", "<ESC>", { desc = "For Insert -> Normal" })
|
||||
|
||||
-- better up/down
|
||||
map("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
map("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue