1
Fork 0
satellite/dotfiles/neovim/lua/my/helpers/wrapMovement.lua
2023-01-10 02:38:06 +01:00

16 lines
259 B
Lua

local M = {}
local function swap(key)
vim.keymap.set({ "n", "v" }, key, "g" .. key, { buffer = true })
vim.keymap.set({ "n", "v" }, "g" .. key, key, { buffer = true })
end
function M.setup()
swap("j")
swap("k")
swap("0")
swap("$")
end
return M