This is where I am going to keep notes as I develop the
ruby-ts-mode.el.
I’m hoping not to forget some steps I did…
- Initial set up:
git clone [email protected]:casouri/tree-sitter-module.gitcd tree-sitter-module./build.sh rubymkdir ~/.config/emacs/tree-sittermv dist/libtree-sitter-ruby.dylib ~/.config/emacs/tree-sitter
- Loaded a Ruby file and did
M-: (treesit-parser-create 'ruby)which returned#<treesit-parser for ruby>… I guess that’s good. (treesit-parser-list)to check the list of parsers for the current buffer.M-x treesit-inspect-modeand it seemed happy.