test(config): cover link_severity in parity harnesses and docs
CI / cargo fmt --check (push) Successful in 23s
CI / cargo clippy (push) Successful in 31s
CI / cargo test (push) Successful in 31s
CI / editor keymaps (push) Successful in 1m28s

Both editor harnesses now emit diagnostic.link_severity and exercise a
non-default override ('error') in the sample scenario, diffed against the
shared golden. Drop the README "not wired" caveat now that the value flows
through, and document the g:nuwiki_link_severity global.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 21:53:56 -03:00
parent 5ee72c40e2
commit e3f28d7dfc
4 changed files with 14 additions and 7 deletions
+4
View File
@@ -27,6 +27,9 @@ local function dump(payload)
emit('file_extension=' .. tostring(payload.file_extension))
emit('syntax=' .. tostring(payload.syntax))
emit('log_level=' .. tostring(payload.log_level))
if payload.diagnostic then
emit('diagnostic.link_severity=' .. tostring(payload.diagnostic.link_severity))
end
if payload.wikis then
for i, w in ipairs(payload.wikis) do
local keys = {}
@@ -53,6 +56,7 @@ config.apply({
file_extension = '.md',
syntax = 'vimwiki',
log_level = 'debug',
diagnostic = { link_severity = 'error' },
wikis = {
{
name = 'personal',