Skip to content

Is it possible to get the location of all error nodes from the treesitter parser #1831

Answered by theHamsta
IndianBoy42 asked this question in Q&A
Discussion options

You must be logged in to vote

To see them map luaTSError to a highlight you want them to have.

If you want to have their locations, you can launch a query with (ERROR) @error. The Neovim documentation contains information in how to launch queries and process the results.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IndianBoy42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants