Skip to content

Commit 31753e3

Browse files
committed
Configure chruby to work with nvim/goneovim/VimR [vim]
1 parent aca24f7 commit 31753e3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.vimrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ let &t_SI = "\<Esc>]50;CursorShape=1\x7"
361361
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
362362
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
363363

364+
" set ruby for neovim/goneovim/VimR using chruby
365+
let g:ruby_host_prog = '~/bin/chruby-wrapper'
366+
364367

365368

366369
" SYNTAX HIGHLIGHTING

.zprofile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ elif [ -x "$HOME/.rvm/scripts/rvm" ]; then
5050
export PATH=$PATH:$HOME/.rvm/bin
5151
fi
5252

53+
# Automatically switch to the ruby version specified in the .ruby-version file
54+
# present in the current directory; This is required for goneovim/VimR
55+
chruby_auto
56+
5357
# rubygems config telling it to activate gems found in the Gemfile file
5458
# which is found in the current directory (or any parent directory)
5559
# in order to never have to type `bundle exec` again

0 commit comments

Comments
 (0)