nvim: Auto format prose soft with word-linebreaks
Automatically set formatting mode to soft for markdown, text and asciidoc files. Also automatically format on startup (no lazy-loading), and thus have nicely word-ending linebreaks (a word will not just be cut off wherever the line is over but will be fully moved to the next line instead).
This commit is contained in:
parent
490232d18a
commit
bf2e74265c
1 changed files with 2 additions and 0 deletions
|
@ -12,8 +12,10 @@ return {
|
|||
require("wrapping").setup({
|
||||
create_keymappings = false,
|
||||
notify_on_switch = false,
|
||||
softener = { markdown = true, text = true, asciidoc = true }
|
||||
})
|
||||
end,
|
||||
lazy = false
|
||||
},
|
||||
-- displays prettier headlines mimicking the ones in emacs orgmode
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue