Skip to main content

Questions tagged [tree-sitter]

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

I'm using Emacs 30 on macOS 26.0.1. I've tried both emacs-plus@30 and compiling Emacs 30.2.5 from source with --with-tree-sitter. I'm not sure if this is an issue or expected behavior, but in my Rust ...
Kanishk's user avatar
1 vote
0 answers
31 views

I've been using typescript-mode and tide for a long time but I wanted to try out tree-sitter and lsp-mode. I've got most things working except for one problem with syntax highlighting. When I first ...
ironchicken's user avatar
0 votes
1 answer
45 views

I am using emacs 30.2 with c++ treesit mode enabled. I can jump to function end with C-M-e, how can I jump to function define under current cursor?
lucky1928's user avatar
  • 1,774
1 vote
2 answers
86 views

As of Emacs 30, what would be the purpose of using the tree-sitter-mode minor mode for some classic major mode (go-mode or python-mode for example) when it's possible to use a major mode that supports ...
PRouleau's user avatar
  • 924
1 vote
1 answer
123 views

I'm running emacs 30.2 (built locally from source), on Ubuntu, using doom. Today, I was editing some c++ code that uses iostreams, and I had multiple lines that started with the '<<' operator. ...
user888379's user avatar
0 votes
2 answers
210 views

When I run M-x java-ts-mode it complains Tree-sitter for Java isn't available With C-h f java-ts-mode I see that the mode is built-in, but in the *Warnings* buffer I also see No such file or ...
Harald's user avatar
  • 404
0 votes
1 answer
93 views

I know I can set the indentation width with yaml-indent-offset in yaml-mode. How can I set the indentation in yaml-ts-mode? (Which I would prefer for more native folding, breadcrumbs, etc.)
quazgar's user avatar
  • 341
0 votes
0 answers
125 views

Manually converting a .clang-format file or a c-style-alist style to a c-ts-mode-indent-style function is tedious, error-prone, and impractical when working on a large number of different open source ...
Richard Hansen's user avatar
1 vote
0 answers
75 views

In c++-mode (and c-mode), forward/backward-sexp behave how I expect: int foo = bar(1, 2); // ^ point here int foo = bar(1, 2); // ^ forward-sexp moves point here int foo = bar(1, 2); ...
Yossarian's user avatar
  • 111
0 votes
1 answer
66 views

I'm writing my own "implement given interface for a given struct" functionality for Golang based on tree-sitter. I can't figure out how to write a treesit-query that would capture a list of ...
Pavel Gurkov's user avatar
0 votes
0 answers
67 views

I would like emacs to parse the template string with the html parser in the following typescript code. const template = document.createElement('template'); template.innerHTML = /* html */ ` <div ...
BFedle's user avatar
  • 1
0 votes
0 answers
118 views

System aarch64-apple-darwin24.5.0 (Apple Mac Studio M1 Max running macOS 15.5 Sequoia). Emacs I've now tried two versions of Emacs, and the differences between the two have helped me narrow down the ...
Alexis Purslane's user avatar
1 vote
1 answer
204 views

I can't get c-ts-mode to indent function parameters properly. I want it to use "lineup indentation" if there is a parameter on the function identifier line and otherwise "one-step ...
Gaslight Deceive Subvert's user avatar
2 votes
2 answers
2k views

I am trying to use emacs for programming python and c/c++. I recently upgraded my MacOS setup to emacs-plus@30 --with-ctags--with-dbus --with-debug --with-mailutils --with-no-frame-refocus --with-...
user44429's user avatar
0 votes
1 answer
275 views

I am working on a major mode using treesitter as my parser. It's been pretty intuitive but I ran into an issue. When trying to use multiple languages, you have to specify ranges using nodes in the AST ...
Marc Johnson's user avatar

15 30 50 per page