Skip to content

Instantly share code, notes, and snippets.

@bibstha
Last active February 25, 2023 04:32
Show Gist options
  • Save bibstha/97e7922fa6ee650d4adc2981ea0c00a9 to your computer and use it in GitHub Desktop.
Save bibstha/97e7922fa6ee650d4adc2981ea0c00a9 to your computer and use it in GitHub Desktop.
Compiling rubyfmt in M1 mac
# if you haven't cloned rubyfmt yet
git clone [email protected]:fables-tales/rubyfmt.git
cd rubyfmt
# update ruby submodule if previously checked in
cd librubyfmt/ruby_checkout/
git reset --hard HEAD
cd ..
git submodule update
# now build ruby
cd ruby_checkout
make clean
make all
cd ../..
# build rubyfmt
make clean
make all
@bibstha
Copy link
Author

bibstha commented Feb 25, 2023

Setup rubyfmt for neovim

in init.lua

vim.cmd('source ~/.config/nvim/rubyfmt.vim')
vim.g.rubyfmt_path = '~/bin/rubyfmt'

Next time a ruby file is saved, it will automatically run rubyfmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment