Set up ruby

This commit is contained in:
jdormit 2024-02-11 00:11:50 -05:00
parent 16ce934bd8
commit 752cac8f96
5 changed files with 16 additions and 1 deletions

View File

@ -191,6 +191,7 @@
(html-web-mode . eglot-ensure)
(scala-mode . eglot-ensure)
(c-mode . eglot-ensure)
(ruby-mode . eglot-ensure)
:custom
(eglot-confirm-server-initiated-edits nil))

View File

@ -0,0 +1,8 @@
;; -*- lexical-binding: t; -*-
(use-package ruby-mode
:straight (:typebuilt-in))
(use-package rbenv
:hook (after-init . global-rbenv-mode))
(provide 'init-ruby)

View File

@ -94,6 +94,7 @@
(require 'init-java)
(require 'init-scala)
(require 'init-js)
(require 'init-ruby)
(require 'init-rust)
(require 'init-web)
(require 'init-xml)

View File

@ -37,9 +37,10 @@ brew "prettier"
brew "pyenv"
brew "pyright"
brew "python@3.9"
brew "rbenv"
brew "restic"
brew "ripgrep"
brew "ruby"
brew "ruby-build"
brew "sbt"
brew "scala"
brew "seamstress"

View File

@ -35,3 +35,7 @@ if [ -d "/opt/homebrew/Caskroom/google-cloud-sdk" ]; then
fi
[[ -e "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
if command -v rbenv &> /dev/null; then
eval "$(rbenv init - zsh)"
fi