SaaSHub helps you find the best software and product alternatives Learn more →
Tree-sitter-module Alternatives
Similar projects and alternatives to tree-sitter-module
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
.emacs.d
My personal Emacs config with any quirks, oddities, bugs, and man-eating errors I live with on a daily basis. (by jimeh)
-
-
-
-
-
-
-
-
-
-
-
tree-sitter-module discussion
tree-sitter-module reviews and mentions
-
Let's write an Emacs treesitter major mode
BTW:
While Emacs 29.1 comes with "treesitter" built-in, you still need to manually build and install any treesitter language plugin implementing the actual language specific parser. This can be fiddly and frustrating doing it yourself.
I had a quick success with using this convenience script: https://github.com/casouri/tree-sitter-module/. It provides fully-automated builds for the most popular languages (including typescript, c and c++).
This is how it works for "typescript":
1. Clone the repository: https://github.com/casouri/tree-sitter-module/
2. Install "build-essentials" (providing a c/c++ compiler if you're on Linux).
3. run "./build typescript" from within the repo
4. Copy the resulting shared library from "dist/libtree-sitter-typescript.so" into your "~/.emacs.d/tree-sitter/".
5. Open a random typescript file and try "M-x typescript-ts-mode" which should not give you any error but instead nice syntax highlighting.
You might find there is a treesitter plugin for your language available and it is even supported by "tree-sitter-module" but there is still no major mode, yet. Happened to me for Perl 5.
-
Mastering Emacs: What's new in Emacs 29.1
I will look into building my own tree sitter grammars using https://github.com/casouri/tree-sitter-module as you suggest.
Some time ago I followed this guide https://vxlabs.com/2022/06/12/typescript-development-with-em...
- Getting Emacs 29 to Automatically Use Tree-sitter Modes · robbmann
- tree-sitter-module: Building script for tree-sitter language definitions
-
Emacs 29: Install Tree-Sitter parser modules with a minor mode
Also this https://github.com/casouri/tree-sitter-module/issues/13
-
Do I still need to install tree-sitter manually, for native tree-sitter in emacs29 to work?
I've downloaded and generated the libraries for the various languages from: https://github.com/casouri/tree-sitter-module
-
Setup Eglot in Emacs29 to recognize Python virtualenv
Third, I'm using tsitter in emacs29. I have https://github.com/casouri/tree-sitter-module installed as a sub-module in ~/.config/emacs, and have a symlink called tree-sitter to ./tree-sitter-module/dist (built by ./tree-sitter-module/batch.sh) . I'm mentioning the tsitter config here since I'm using python-ts-mode which is tree-sitter aware.
-
Is anyone working on a ruby tree sitter mode?
I'd recommend checking out https://github.com/casouri/tree-sitter-module for building the native treesit libraries that are required to enable the various languages.
-
How to use Emacs 29 Tree-sitter?
The author of the built-in tree-sitter implementation has published this repo with a build script to help you build various grammars: https://github.com/casouri/tree-sitter-module
-
A note from our sponsor - SaaSHub
www.saashub.com | 3 Dec 2024
Stats
The primary programming language of tree-sitter-module is Shell.
Popular Comparisons
- tree-sitter-module VS treesit-auto
- tree-sitter-module VS git-sim
- tree-sitter-module VS tree-sitter-c-sharp
- tree-sitter-module VS tree-sitter-langs
- tree-sitter-module VS tree-sitter-typescript
- tree-sitter-module VS typescript-lan
- tree-sitter-module VS TypeScriptCompiler
- tree-sitter-module VS org-alert
- tree-sitter-module VS nvim-treesitter-textobjects
- tree-sitter-module VS rust-analyzer