Skip to content

Commit

Permalink
fix(latex-renderer): fixed renderer failing silently
Browse files Browse the repository at this point in the history
Commit [8ec38e0](8ec38e0)
changed the implementation of the treesitter module's `execute_query` function. The function
asks for a non-nil source, but the latex renderer wasn't providing one (which should have
caused a type error, but didn't because the way the `module.required` table works prevents
lua_ls from getting the function's signature). The previous implementation happened to use a
function internally that used the buffer 0 when `source` was omitted to get the parser, which
is what allowed the latex renderer to work previously, but the new implementation didn't do that
  • Loading branch information
ALVAROPING1 authored and vhyrro committed Jun 12, 2024
1 parent 0b9b5ca commit 4b22a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/neorg/modules/core/latex/renderer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ module.public = {
real = true,
extmark_id = existing_ext_id,
}
end
end,
buf
)

for key, limage in pairs(new_limages) do
Expand Down

0 comments on commit 4b22a4e

Please sign in to comment.