Wrap lines based on their concealed width instead of their unconcealed width.
Install this plugin and load it by adding this to your neorg config:
["external.conceal-wrap"] = {},
There is no configuration. :h textwidth
is used as the target width of a line.
This plugin overwrites the formatexpr
for .norg
buffers, so formatting is applied with the gq
mapping. see :h 'formatexpr'
and :h gq
for details. TL;DR: use gq<text object>
to format
the text object.
Formatting in insert mode falls back to normal nvim formatting. This is for a few reasons I guess, the main one being that I don't care to implement it right now. But also, while typing syntax is often broken and this would result in needing to reformat sometimes anyway.