elisp-tree-sitter
elisp-tree-sitter copied to clipboard
Emacs Lisp bindings for tree-sitter
`tree-sitter-hl-mode` highlights TSX tag delimiters like `
A simplistic `imenu-create-index-function` can look like this: ```emacs-lisp (defun tree-sitter-rust-imenu-index-function () (thread-last (tree-sitter-query [(function_item (identifier) @function)]) (seq-map (lambda (capture) (pcase-let ((`(_ . ,node) capture)) (cons (ts-node-text node) (ts-node-start-position node))))))) ```...
Hi, There is `make-range!` predicate implemented in nvim-treesitter [here](https://github.com/nvim-treesitter/nvim-treesitter/blob/ddcfc019792e67ca632b5698ea739bbff51518c0/lua/nvim-treesitter/query.lua#L180). It is used for implementing some evil text objects: [example](https://github.com/nvim-treesitter/nvim-treesitter-textobjects/blob/b0e61fb097baeb1cf3e1db982d6be941b1c015cd/queries/python/textobjects.scm#L153). Those queries don't work in emacs implementation of [evil text objects](https://github.com/meain/evil-textobj-tree-sitter)....
This is to fix the incorrect path for where the `tree-sitter` cli stores dynamically-loadale libraries. Rust Dirs ```rust /// Returns the path to the user's cache directory. /// /// The...
I did a quick search here and on google but did not find any attempt on using tree-sitter to fold code in emacs. So I wrote a quick patch [here](https://github.com/junyi-hou/tree-sitter-fold)...
This will allow `jupyter-repl` to integrate with `tree-sitter` and `tree-sitter-hl`. See #78 for more context. I initially tried to make `tree-sitter` parse only the narrowed region. However, since tree-sitter's incremental...
Most importantly, this would allow M1 macOS users to use the package, without waiting for us to set up all the CI infrastructure (#88). It's also necessary for users who...
I was able to have Emacs with the native-comp branch working on Arch Linux, thanks to [this reddit post](https://www.reddit.com/r/emacs/comments/kev7o8/aur_arch_linux_package_delivering_emacs_binaries/). Now, I'm facing with an issue related to this package on...
Hi, I've been using emacs-tree-sitter for Python highlighting for a couple of months now, and am very happy with it - thanks! I develop a lot with `org-babel` and `emacs-jupyter`,...
WIP imenu implementation for tree-sitter. This works pretty much exactly like the highlighting functionality. We have a separate patterns file for querying imenu entries and a (not enabled by default)...