Move development scripts into development/, leaving scripts/ plugin-only
CI / cargo fmt --check (push) Successful in 32s
CI / cargo clippy (push) Successful in 25s
CI / cargo test (push) Successful in 33s
CI / cargo fmt --check (pull_request) Successful in 30s
CI / cargo clippy (pull_request) Successful in 49s
CI / cargo test (pull_request) Successful in 43s
CI / editor keymaps (push) Successful in 1m49s
CI / editor keymaps (pull_request) Successful in 1m36s

The root scripts/ folder now holds only download_bin.vim, the one script
the plugin itself invokes (via :NuwikiInstall and the vim-plug/Dein build
hooks). All developer tooling — the start-nvim/start-vim launchers,
test-personal-wiki, the keymap harnesses, and syntax-diag — moves to
development/ alongside the developer docs.

REPO_ROOT resolution is unchanged (development/ sits one level under root,
same as scripts/ did); only the explicit cross-references, the CI harness
invocations, the README launcher paths, and the ONBOARDING structure tree
are updated.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 14:35:24 -03:00
parent dd92e070d0
commit f32f54e8a8
11 changed files with 44 additions and 32 deletions
+75
View File
@@ -0,0 +1,75 @@
" development/syntax-diag.vim — dump highlighting state to /tmp/nuwiki-syndiag.log
"
" Usage: open a .wiki file with VARIED markup (heading, *bold*, _italic_,
" `code`), then:
" :source development/syntax-diag.vim
" Then paste /tmp/nuwiki-syndiag.log back.
redir! > /tmp/nuwiki-syndiag.log
echo '=== state ==='
echo 'filetype=' . &filetype
echo 'syntax=' . &syntax
echo 'b:current_syntax=' . get(b:, 'current_syntax', '<unset>')
echo 'syntax_on=' . exists('g:syntax_on')
echo 'colors_name=' . get(g:, 'colors_name', '<unset>')
echo 'background=' . &background
echo 'termguicolors=' . &termguicolors
echo 't_Co=' . &t_Co
echo 'has(nvim)=' . has('nvim')
echo 'g:loaded_nuwiki=' . get(g:, 'loaded_nuwiki', '<unset>')
echo 'g:loaded_vimwiki=' . get(g:, 'loaded_vimwiki', '<unset>')
echo ''
echo '=== every syntax/vimwiki.vim in runtimepath (first wins) ==='
for s:p in split(&runtimepath, ',')
let s:f = s:p . '/syntax/vimwiki.vim'
if filereadable(s:f)
echo s:f
endif
endfor
echo ''
echo '=== :hi for our groups (NO silent — capture into redir) ==='
for s:g in ['nuwikiHeading', 'nuwikiBold', 'nuwikiItalic', 'nuwikiCode',
\ 'nuwikiPlaceholder', 'nuwikiCommentLine', 'nuwikiWikilink',
\ 'Title', 'PreProc', 'String', 'Comment', 'Underlined', 'Normal']
execute 'highlight ' . s:g
endfor
echo ''
echo '=== synID walk over current buffer (first 30 lines) ==='
for s:ln in range(1, min([line('$'), 30]))
let s:l = getline(s:ln)
let s:segs = []
let s:last = ''
let s:start = 1
for s:c in range(1, len(s:l) + 1)
let s:g = s:c <= len(s:l) ? synIDattr(synIDtrans(synID(s:ln, s:c, 1)), 'name') : ''
if s:g != s:last
if s:start <= s:c - 1
let s:txt = strpart(s:l, s:start - 1, s:c - s:start)
call add(s:segs, s:last . ':' . s:txt)
endif
let s:last = s:g
let s:start = s:c
endif
endfor
echo printf('L%d %s', s:ln, join(s:segs, ' | '))
endfor
echo ''
echo '=== :syntax list (full) ==='
syntax list
echo ''
echo '=== :scriptnames (filtered) ==='
let s:sn = execute('scriptnames')
for s:line in split(s:sn, '\n')
if s:line =~? 'vimwiki\|nuwiki\|syntax\|colors'
echo s:line
endif
endfor
redir END
echo 'Wrote /tmp/nuwiki-syndiag.log'