Files
nvim/after/ftplugin/markdown.lua
2026-01-05 21:29:12 -05:00

11 lines
457 B
Lua

-- Soft wrap at the word
vim.opt_local.wrap = true -- Enable wrapping
vim.opt_local.linebreak = true -- Wrap at words, not in the middle of a word
vim.opt_local.breakindent = true -- Keep the same indentation on wrapped lines
-- Navigation fix
-- By default, 'j' and 'k' jump physical lines.
-- These remaps make them move by visual lines.
vim.keymap.set('n', 'j', 'gj', { buffer = true })
vim.keymap.set('n', 'k', 'gk', { buffer = true })