feat(keymaps): use regular jk when specifying a count

This commit is contained in:
Folke Lemaitre 2023-01-06 07:21:27 +01:00
parent 6a50c8c83c
commit 6bfba2d669
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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")