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
I have read the FAQ and my bug is not listed there.
Description
There are several issues that might be related to not having norg-meta treesitter parser packaged or included with neorg on Nixvim.
Syntax highlighting for metadata field in norg files doesn't work. Here are screenshots, the one without highlights is norg file opened in nixvim with option configured Neorg, and the other is nixvim with Neorg-overlay
no norg-meta
norg-meta from overlay
The auto command for norg buffers that executes after writing a buffer trows an error:
Error detected while processing BufWritePost Autocommands for "*.norg":
Error executing Lua callback: ....10.1/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser f
or 'norg_meta' language, see :help treesitter-parsers
stack traceback:
[C]: in function 'error'
....10.1/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'add'
...d-0.10.1/share/nvim/runtime/lua/vim/treesitter/query.lua:250: in function 'fn'
...pped-0.10.1/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'ts_parse_query'
...ua/neorg/modules/core/integrations/treesitter/module.lua:808: in function 'get_document_metadat
a'
...ges/start/neorg/lua/neorg/modules/core/tangle/module.lua:226: in function 'tangle'
...ges/start/neorg/lua/neorg/modules/core/tangle/module.lua:466: in function 'on_event'
.../myNeovimPackages/start/neorg/lua/neorg/core/modules.lua:781: in function 'broadcast_event'
...s/start/neorg/lua/neorg/modules/core/neorgcmd/module.lua:298: in function <...s/start/neorg/lua
/neorg/modules/core/neorgcmd/module.lua:205>
And it seems that it also breaks the core.tangle module. Because when core.tangle is enabled as a module in neorg the :Neorg journal today trows an error:
eventually thanks to https://github.com/nvim-neorocks/rocks-treesitter.nvim/ we should be able to have the grammar as dependencies of the plugin when installed via luarocks (with Rocks.nvim), which is then picked up automatically by nixpkgs. Can't say when it will happen though but neorg author is a rocks.nvim maintainer
neorg
unstable
unstable
Description
There are several issues that might be related to not having
norg-meta
treesitter parser packaged or included with neorg on Nixvim.Syntax highlighting for metadata field in norg files doesn't work. Here are screenshots, the one without highlights is norg file opened in nixvim with option configured Neorg, and the other is nixvim with Neorg-overlay
The auto command for norg buffers that executes after writing a buffer trows an error:
And it seems that it also breaks the
core.tangle
module. Because whencore.tangle
is enabled as a module in neorg the:Neorg journal today
trows an error:Minimal, Reproducible Example (MRE)
The text was updated successfully, but these errors were encountered: