Questions tagged [tree-sitter]
The tree-sitter tag has no usage guidance.
3
questions
0
votes
1
answer
47
views
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 ...
0
votes
2
answers
152
views
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 ...
0
votes
0
answers
82
views
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 ...