Closed SichangHe closed 1 year ago
I have jumped through hoops to confirm that this issue is indeed with elixir.nvim
.
The following init.lua
does not give me the error:
require('packer').startup(function(use)
use {
'glepnir/lspsaga.nvim',
event = 'VimEnter',
requires = { 'nvim-tree/nvim-web-devicons' },
config = function()
require('lspsaga').setup {
lightbulb = {
enable_in_insert = false,
virtual_text = false,
},
symbol_in_winbar = {
enable = false,
},
ui = {
border = 'none',
},
}
end,
}
use {
'williamboman/mason.nvim',
config = function()
require('mason').setup {}
end,
}
use {
'williamboman/mason-lspconfig.nvim',
requires = {
'williamboman/mason.nvim',
'neovim/nvim-lspconfig',
},
config = function()
local servers = {
sumneko_lua = {},
}
require('mason-lspconfig').setup_handlers {
function(name)
if servers[name] then
require('lspconfig')[name].setup {
settings = servers[name],
}
end
end
}
end,
}
end)
Hi @SichangHe!
Are you able to reproduce this with elixir.nvim and not including lspsaga? I don't think showing the absence of an error with another LSP/plug proves the presence of a bug in elixir.nvim.
I have been seeing the same thing, and I was able to confirm the bug lies in elixir-tools.nvim. I initially suspected my file explorer plugin oil.nvim. I would see this error when leaving a floating oil window. After landing here, removing plugins and trying different combinations, I only saw the bug when elixir-tools.nvim was present.
When I remove these lines pertaining to the codelens support, I no longer see the same error.
This might be related https://github.com/neovim/neovim/pull/23894/files
I'll keep an eye on it and see if that fixes it. I suspect you are correct.
I am rather convinced this is just a neovim codelens issue and not an elixir-tools.nvim issue, so i will close this ticket.
if that ends up not being the case, please let me know.
Please see this issue I posted in glepnir/lspsaga.nvim.
Copied here: