1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/nvim/ftplugin/text.lua
2022-09-08 21:26:48 +02:00

13 lines
251 B
Lua

local set = vim.keymap.set
-- Soft wrap
vim.wo.wrap = true
-- 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)