Initial
This commit is contained in:
10
after/ftplugin/markdown.lua
Normal file
10
after/ftplugin/markdown.lua
Normal file
@ -0,0 +1,10 @@
|
||||
-- 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 })
|
||||
Reference in New Issue
Block a user