Whenever I do :echo synstack(line("."), col(".")) it prints []

I've tried this in html and svelte files in my neovim with treesitter, in neovim with -u NONE, and in Vim 9 with -u NONE. All of them just returning [] all the time.

How am I meant to be able to check synstack?

1 Answer 1


I believe Treesitter is not working with syntax and hence synstack is helpless.

To analyse the syntax result of Treesitter you can use tresitter-playground.

  • Yes, and my non-treesitter attempts weren't working because I didn't :syntax on Mar 28 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.