As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [tree-sitter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

C/C++ with tree sitter: how to change indent?

I use Emacs with tree sitter for c++ code (c++-ts-mode). With usual c++-mode I've used this fix for me: (c-set-offset 'inline-open '0) but I don't understand how to do it in new c++-ts-mode. In ...
Sergey's user avatar
  • 191
0 votes
2 answers

How do I check if the current buffer has a treesit parser?

Starting with Emacs 29, we've got native TreeSitter support using treesit. My question is: how do I know I can use treesit-* functions in the current buffer? The feature check only checks if Emacs ...
Aleksandar Dimitrov's user avatar
0 votes
0 answers

How do I use a local tree-sitter grammar in my emacs major mode?

I want to create a new major mode for a language with tree-sitter. I am working on the tree-sitter parser locally and It's working (tested in neovim and helix) Now I want to tell emacs to use the ...
Abdellah Stands with Palestine's user avatar