I developed prompter.vim, a vim plugin that autocomplete buffer text using LLMs completions. The completion is a multi-line text insertion appended at the end to the buffer.
I would like to have completion text optionally justified in a fixed width of columns (say 80). This would be like :set textwidth=80
, except with a soft wrap.
Well, a workaround could be to reformat the inserted text entering gqG
, but this solution inserts newlines and modifies the text.
Instead I would like a soft-wrap "non-invasive" solution that only modifies the visual appearance.