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:
Marty Oehme 2023-09-25 19:54:38 +02:00
parent 490232d18a
commit bf2e74265c
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -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
{