Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VimR ignores local Ruby #1010

Open
polydevuk opened this issue Jun 22, 2023 · 1 comment
Open

VimR ignores local Ruby #1010

polydevuk opened this issue Jun 22, 2023 · 1 comment

Comments

@polydevuk
Copy link

I'm running NeoVim 0.9.1 via MacPorts on Mac OS Ventura 13.3.1 and Ruby 3.22 via $HOME/.rbenv . I have an alias to run VimR with my NeoVim config:

vimr --nvim -u ~/.config/nvim/init.lua

... which mostly works fine but :checkhealth is not regcognising my Ruby and insists on using the system Ruby instead:

mason.nvim [Languages]

  • OK: Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin22]
  • WARNING: RubyGem: not available

Ruby provider (optional)

  • INFO: Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin22]

  • INFO: Host: /Users/gmac/.rbenv/shims/neovim-ruby-host

  • ERROR: Command error (job=11, exit code 1): gem list -ra '^neovim$' (in '/Users/gmac')

  • ERROR: Failed to run: gem list -ra ^neovim$

My NeoVim :checkhealth shows no errors and respects the Ruby I have configured:

mason.nvim [Languages]

  • OK Ruby: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin21]
  • OK RubyGem: 3.4.13

Ruby provider (optional)

  • Ruby: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin21]
  • Host: /Users/gmac/.rbenv/shims/neovim-ruby-host
  • OK Latest "neovim" gem is installed: 0.9.0

I don't know if this is related but there is also an intit file issue listed by VimR :checkhealth:

Configuration

  • WARNING: Missing user config file: /Users/gmac/.config/nvim/init.vim

My config is: /Users/gmac/.config/nvim/init.lua

@alexeevit
Copy link

Do you have this line in your config? I just checked with it and it worked fine.

let g:ruby_host_prog = '~/.rbenv/versions/3.2.2/bin/neovim-ruby-host'

For more information :help g:ruby_host_prog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants