mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +02:00
feat(keymaps): use regular jk when specifying a count
This commit is contained in:
parent
6a50c8c83c
commit
6bfba2d669
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
|||
local util = require("lazyvim.util")
|
||||
|
||||
-- better up/down
|
||||
vim.keymap.set("n", "j", "gj")
|
||||
vim.keymap.set("n", "k", "gk")
|
||||
vim.keymap.set("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
vim.keymap.set("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
|
||||
-- Move to window using the <meta> movement keys
|
||||
vim.keymap.set("n", "<A-left>", "<C-w>h")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue