docs(config): add configuration reference tables and fix links_space_char default

Document every config key (top-level, mappings, per-wiki, HTML export, and
g:nuwiki_* globals) with types, defaults, and accepted values in the README
Configuration section. Correct the links_space_char doc comment: the default
is a literal space (spaces kept verbatim), not "_". Note that
diagnostic.link_severity is accepted but not yet wired through to the server.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 19:24:08 -03:00
parent 63ef1b59a2
commit 47af0d6c1e
2 changed files with 91 additions and 1 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ pub struct WikiConfig {
/// that many extra columns. Layout hint for the renderer.
pub list_margin: i32,
/// Character used in place of literal spaces inside wikilink
/// targets when writing to disk (`_` by default).
/// targets when writing to disk (a single space `" "` by default,
/// i.e. spaces are kept verbatim).
pub links_space_char: String,
/// `nested_syntaxes` — code-block language → editor filetype map
/// used for syntax-highlighting fenced blocks. Empty by default.