elisp-tree-sitter
elisp-tree-sitter copied to clipboard
Emacs Lisp bindings for tree-sitter
I’m not sure if it's a tree-sitter, elisp-tree-sitter, or tree-sitter-langs problem, but while typing new code the highlighting changes way too often. For instance consider the following Javascript code with...
`tsc-make-cursor` and `tsc-goto-xxxx` does not appear to work when created against a non-root node
I'm encountering a weird issue and I'm fairly certain it's a bug. If you create a cursor against a non-root node the cursor movement code does not work. Version: 0.15.1...
The below ruby code: ```ruby foo = 123 ``` Gives `foo` a face of `tree-sitter-hl-face:function.method` which isn't correct (it should be `variable` or similar). I poked around a bit and...
After enabling tree-sitter-hl-mode, the latency of typing and cursor movement is taking a big noticable hit. My impression before installing emacs-tree-sitter was that the latency is acutally going down. That...
Is it possible to replace the printed hash notation of nodes (or trees, I guess) with something more user friendly? I'm thinking `#` or something to that effect: basically the...
[Polymode](https://polymode.github.io/) is a fairly popular multiple major mode framework these days. The way it works is it looks at clearly demarcated code blocks, say in a Github Flavored Markdown or...
In emacs-tree-sitter, keywords like `if/else/for/while/return` (in C/C++/Java etc.) are all treated as `tree-sitter-hl-face:keyword`. However, in [Neovim's tree-sitter support](https://github.com/nvim-treesitter/nvim-treesitter) for instance, `return` is rendered differently to `if/else/for/while`. Implementation-wise, how hard would...
Is it possible to reload the .so shared library for a grammar within the current emacs session? Nothing else would change besides the shared library being updated from a more...
@yyoncho [noted](https://github.com/ubolonton/emacs-tree-sitter/pull/16#discussion_r386357675) that in Emacs sometimes a mapping of major mode and language is not as straightforward as `N -> 1`, but rather `N -> N`, that is to say...
First of all, great package! Consider the following Python example: ```python if True: ``` And the following tree: ``` module (1 . 9) if_statement (1 . 9) true (4 ....