lang/ruby: add +chruby (#2667)

Co-authored-by: Henrik Lissner <accounts@v0.io>
This commit is contained in:
Otávio Schwanck dos Santos 2020-03-09 18:04:10 +00:00 committed by GitHub
parent 503c6d878e
commit 992f4b76f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 5 deletions

View file

@ -119,6 +119,14 @@
"e" #'bundle-exec
"o" #'bundle-open))
(use-package! chruby
:when (featurep! +chruby)
:hook (enh-ruby-mode . chruby-use-corresponding)
:hook (ruby-mode . chruby-use-corresponding)
:config
(setq rspec-use-rvm nil
rspec-use-chruby t))
(after! rbenv
(setq rspec-use-rvm nil)
(add-to-list 'exec-path (expand-file-name "shims" rbenv-installation-dir)))