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