Expose tree-sitter AST

Would it be possible in a future release to have Nova expose the tree-sitter AST to extensions or to users as a built in feature?

Some useful examples I can think of that would help with grammar development:

A side bar that shows the entire AST of the currently open file, similar to GitHub - nvim-treesitter/playground: Treesitter playground integrated into Neovim

A “Copy current selection as S-expression” type feature – similar to Web developer “copy selector path / Xpath”.

Just making copying text of tree sitter data easier.

The show syntax inspector view is helpful but it is limited to a particular node and it isn’t possible to copy the entire node as text easily.

Thanks!

3 Likes

This would be insanely helpful!!!

1 Like

I agree, +1 for this as well