Open jonathf opened 1 year ago
Ah this is a known issue because of the V1 parser. I'm close to releasing the first release version of the V3 parser which should be much better overall :)
Good to hear. Mind pointing me in the direction of the v3 parser work (if it is published/in a pr)?
Here ya go: https://github.com/nvim-neorg/tree-sitter-norg3
Prerequisites
Neovim Version
NVIM v0.10.0-dev
Neorg setup
Actual behavior
Here is the norg code:
Here is the treesitter tree:
First tangle tag starts with
italic
since the first part of/home/jonathf/.config/file
to norg is italic text. The second tangle tag does not, but the first~
is ignored from the tree, which I guess that treesitter doesn't recognise it.Expected behavior
I would like Neorg to recognize both tag paths so that they can be processed by tangle.
Steps to reproduce
Read file with the Norg content above, and run
:InspectTree
to see the query tree.Help
Yes
Implementation help
I can add code in the lua plugin ecosystem, but I am inexperiences with treesitter scheme if that is where we are heading.