You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix markdown not rendering on Neovim 0.11 — query:source() does not exist on vim.treesitter.Query in Neovim 0.11.6, causing injections to crash before they were registered
Fix has_parser() crash in debug — nvim-treesitter.parsers.has_parser() was removed in newer nvim-treesitter
Fix render-markdown not attaching to buffer — When the Python buffer opens before VeryLazy, render-markdown's FileType autocmd skips it because "python" isn't in file_types yet. Now explicitly calls manager.attach(buf) before enable()
Fix block-level markdown parsing — Removed injection.combined which merged all comment lines into one document at column 2, causing YAML front matter to poison the parse and collapse everything into a single paragraph
Fix heading rendering — render-markdown's heading handler hardcodes column 0 for padding, silently failing for injected content at column 2. Headings are now rendered directly via extmarks using render-markdown's highlight groups (RenderMarkdownH*Bg, RenderMarkdownH*)
Changes
Replaced _ensure_injection() and _register_injection_fallback() with a single _register_injection() using vim.treesitter.query.set() directly with ;; extends
Removed all query:source() calls
Removed (#set! injection.combined) — each comment is now its own independent markdown tree
Added manager.attach(buf) call in enable_render_markdown() to handle the VeryLazy timing race
Added heading detection and rendering in extmarks.lua — conceals # ### prefix, applies background and foreground highlights per heading level