-- 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 })