Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 920 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 920 Bytes

neorg-conceal-wrap

Wrap lines based on their concealed width instead of their unconcealed width.

image


Install

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.

Usage

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.