Using the right version of Ruby/JS/Etc inside a devshell #1441
-
Hi all, I have a DevShell where I'm using Ruby 3.3, but I noticed that the Nixvim config is using Ruby 3.1. This seems to cause Solargraph (Ruby LSP) to crash. What is the blessed way to make Nixvim use the right Ruby version when inside the DevShell? I tried using Thanks, David |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi David, |
Beta Was this translation helpful? Give feedback.
Hi David,
By default, nixvim will automatically install the language server (solargraph here). If you want it to use the one from your devshell, you would need to set
plugins.lsp.servers.solagraph.package
tonull
. This would prevent nixvim from installing it.You would then be responsible to have it available on your
$PATH
.