Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on piefed.blahaj.zone

Issue with lsp

Hi, Wondering if anyone has had/solved this issue.

I've been fighting with nvim-lspconfig and ruby_lsp. I have a lazyvim setup and used mason to install ruby_lsp. The problem is that every time I open a ruby file the lsp client is loaded twice.

I tried modifying my mason.lua according to a video I found like so:

{
  "mason-org/mason-lspconfig.nvim",
  opts = {
    -- Settings to prevent duplicate clients in buffer
    ensure_installed = {},
    automatic_installation = false,
    automatic_setup = false,
    automatic_enable = false,
    handlers = nil,
  },
},

I tried disabling mason-lspconfig entirely and manually installing the ruby gem for the lsp, hoping that the lspconfig would use that. Rubocop (also installed via mason) stopped loading, but the duplicate clients remained. I'm still not sure if this is a problem with mason, nvim-lspconfig, the lsp itself, or lazyvim. My python and lua lsps have been fine. Right now I've given up and switched to using solargraph, but the issue haunts me and I shall not know peace until I manage to fix it.

View original on piefed.blahaj.zone
4

No replies yet

No comments on the original post yet.
Issue with lsp | Spyke