Skip to content

Ruby major mode for Emacs 29 based upon tree sitter

Notifications You must be signed in to change notification settings

pedz/ruby-ts-mode

Repository files navigation

Ruby Tree Sitter Mode

Introduction

This is where I am going to keep notes as I develop the ruby-ts-mode.el.

Steps

I’m hoping not to forget some steps I did…

  1. Initial set up:
    1. git clone [email protected]:casouri/tree-sitter-module.git
    2. cd tree-sitter-module
    3. ./build.sh ruby
    4. mkdir ~/.config/emacs/tree-sitter
    5. mv dist/libtree-sitter-ruby.dylib ~/.config/emacs/tree-sitter
  2. Loaded a Ruby file and did M-: (treesit-parser-create 'ruby) which returned #<treesit-parser for ruby>… I guess that’s good.
  3. (treesit-parser-list) to check the list of parsers for the current buffer.
  4. M-x treesit-inspect-mode and it seemed happy.

About

Ruby major mode for Emacs 29 based upon tree sitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages