1
Fork 0
satellite/dotfiles/neovim/lua/my/helpers/wrapMovement.lua

18 lines
282 B
Lua
Raw Normal View History

2023-01-10 02:38:06 +01:00
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()
vim.opt.wrap = true
2023-01-10 02:38:06 +01:00
swap("j")
swap("k")
swap("0")
swap("$")
end
return M