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 git@github.com:casouri/tree-sitter-module.git
cd tree-sitter-module
./build.sh ruby
mkdir ~/.config/emacs/tree-sitter
mv 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-mode
and it seemed happy.