cordx56/rustowl

Error thrown on hover in neovim after installation

Closed this issue · 4 comments

I followed #23 to install this as an lsp server:

lvim.plugins = {
  {
    "cordx56/rustowl",
    dependencies = { "neovim/nvim-lspconfig" },
    config = function()
      local lspconfig = require("lspconfig")
      lspconfig.rustowlsp.setup({})
    end,
  },
  -- ...
}

It works and I can see that the lsp successfully attaches to an example rust buffer:
Image

Unfortunately, I can't see any visual highlighting and when i "hover" (don't move the cursor), after a second or so an error is thrown:
Image

Am I doing something wrong or what might be the source of this issue?

NVIM v0.10.4
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742

maybe it is version problem. An API is changed.

I'll investigate it.

It seems that @Noxdor uses Lunarvim. I think this issue is due to the core plugin dependencies of Lunarvim.
The latest Lunarvim 1.4 uses the commit 'aa5f4f4' of nvim-lspconfig, and it does not have 'get_lsp_clients' yet.
So, I assume we have to wait for an update of Lunarvim.

Image

Yes, I can confirm that I am using Lunarvim and that this is the latest commit of nvim-lspconfig being used. Makes sense then that this breaks, it is not an issue with this repo then and I'll close my issue 👍 Thanks for investigating @daaa1k!