diff --git a/development/start-nvim.sh b/development/start-nvim.sh index e7f9ee4..d157708 100755 --- a/development/start-nvim.sh +++ b/development/start-nvim.sh @@ -64,6 +64,12 @@ vim.g.nuwiki_diary_rel_path = 'diary' require('nuwiki').setup({ wiki_root = '$WIKI_DIR', + -- Exercise the per-wiki display settings via the global shorthand: these + -- fold into the single wiki, so :NuwikiTOC writes `== Contents ==` (level 2) + -- and HTML export numbers headings. + toc_header_level = 2, + html_header_numbering = 2, + html_header_numbering_sym = ' -', }) -- Surface log lines (the LSP logs via window/logMessage). Without this diff --git a/development/start-vim-coc.sh b/development/start-vim-coc.sh index a72b0d2..cae8c6f 100755 --- a/development/start-vim-coc.sh +++ b/development/start-vim-coc.sh @@ -77,6 +77,10 @@ write_coc_settings() { # (served via workspace/configuration). Without these the server falls back # to its own default wiki_root (~/vimwiki) instead of $WIKI_DIR, so it can't # resolve links (e.g. Notes shows as broken) or create-on-follow correctly. + # toc_header_level / html_header_numbering are set to non-defaults so the + # dev wiki exercises them: :NuwikiTOC writes `== Contents ==` (level 2) and + # HTML export numbers headings. coc reads this file verbatim, so these are + # the values the server actually receives. cat > "$COC_SETTINGS" <