Package: neovim
Version: 0.10.4-8
Severity: normal
Upstream bundle tree-sitter-markdown (and a couple of other TS parsers).
They configure them with specific extensions enabled and disabled. e.g.
they deliberately do not enable EXTENSION_WIKI_LINK[1].
Plugins that are expecting to use the bundled treesitter plugins must
therefore be written to the way it is built and configured, including
one of mine[2]. With upstream neovim, the markdown snippet "[[test]]"
results in a treesitter tree such as
(paragraph ; [0, 0] - [1, 0]
(inline ; [0, 0] - [0, 6]
(inline ; [0, 0] - [0, 6]
(shortcut_link ; [0, 1] - [0, 5]
(link_text))))))) ; [0, 2] - [0, 4]
However, since the unbundled tree-sitter-markdown plugin in Debian
enables EXTENSION_WIKI_LINK (and others), with Debian's neovim instead
you get
(paragraph ; [2, 0] - [3, 0]
(inline ; [2, 0] - [2, 6]
(inline ; [2, 0] - [2, 6]
(wiki_link ; [2, 0] - [2, 6]
(link_destination))))) ; [2, 2] - [2, 4]
This breaks nvim-µwiki and any other plugin (of which there may be 0)
which are written to the configuration of the bundled parsers upstream.
From what I can tell, you are actually "bundling" the compiled parser in
the neovim package, just unbundling the source. Which is good, it means
you can align the compile flags with upstream in the neovim build in
order to resolve this without impacting any other consumers of
tree-sitter-markdown-src or tree-sitter-markdown-inline-src.
[1] https://github.com/neovim/neovim/issues/32228
[2] https://github.com/jmtd/nvim-microwiki
-- System Information:
Debian Release: 13.4
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-security'), (500, 'oldoldstable'),
(500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.16.9+deb14-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages neovim depends on:
ii libc6 2.41-12+deb13u2
ii libluajit-5.1-2 2.1.0+openresty20250117-2
ii libmsgpack-c2 6.0.1-3+b1
ii libtree-sitter0.22 0.22.6-6+b1
ii libunibilium4 2.1.1-2+b1
ii libuv1t64 1.50.0-2
ii libvterm0 0.3.3-3+b1
ii lua-lpeg 1.1.0-2
ii lua-luv 1.48.0-2-3
ii neovim-runtime 0.10.4-8
Versions of packages neovim recommends:
ii python3-pynvim 0.5.2-2
ii wl-clipboard 2.2.1-2
ii xclip 0.13-4
ii xsel 1.2.1-1
ii xxd 2:9.1.1230-2
Versions of packages neovim suggests:
ii exuberant-ctags [ctags] 1:5.9~svn20110310-19
pn vim-scripts <none>
-- no debconf information
--
👱🏻 Jonathan Dowland
✎ [email protected]
🔗 jmtd.net