18 lines
282 B
Lua
18 lines
282 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()
|
|
vim.opt.wrap = true
|
|
|
|
swap("j")
|
|
swap("k")
|
|
swap("0")
|
|
swap("$")
|
|
end
|
|
|
|
return M
|