1

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

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.

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

Your Answer

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

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