Skip to content

How to start ruby-lsp inside neovim in a direnv based setup? #3208

Closed Answered by jessevdp
jessevdp asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out that I can use direnv exec . <COMMAND> to get around my issue:

require("lspconfig").ruby_lsp.setup({
  cmd = { "direnv", "exec", ".", "ruby-lsp" },
})

I'm hoping this helps someone 😄

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jessevdp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant