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/asciidoc.lua

14 lines
255 B
Lua
Raw Normal View History

local set = vim.keymap.set
-- Soft wrap
2022-04-07 14:47:12 +00:00
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)