mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-05 15:49:20 +00:00
13 lines
255 B
Lua
13 lines
255 B
Lua
local set = vim.keymap.set
|
|
|
|
-- Soft wrap
|
|
vim.wo.wrap = true
|
|
|
|
-- For navigation with soft wrap
|
|
local opts = {
|
|
buffer = true,
|
|
silent = true,
|
|
expr = true,
|
|
}
|
|
set("n", "j", "v:count == 0 ? 'gj' : 'j'", opts)
|
|
set("n", "k", "v:count == 0 ? 'gk' : 'k'", opts)
|