remove decoration from netrw previews

This commit is contained in:
Ray Elliott 2026-10-28 18:48:13 +00:00
commit 44385e1b3d
4 changed files with 33 additions and 9 deletions

View file

@ -110,10 +110,10 @@ Regular files use netrw's native preview. Directories show a read-only summary o
their immediate children, including type, file size, modification time, and a
total for immediate files. Directories appear first, output is capped at 200
entries, and symbolic links are displayed without following them recursively.
File previews use Vim's syntax highlighting while Tree-sitter is suspended to
avoid asynchronous parser races during rapid replacement; normal Tree-sitter
highlighting resumes automatically when a previewed file is opened for editing.
Diagnostics are hidden in previews and restored to their prior state on edit.
File previews suppress syntax highlighting, Tree-sitter, diagnostics, and indent
guides so rapidly replaced content remains plain and quiet. Normal highlighting
and the buffer's prior diagnostic/indent-guide state return automatically when a
previewed file is opened for editing.
Preview-only file buffers remain loaded but unlisted until Neovim exits, avoiding
the parser detachment that triggers this Neovim 0.12 race.