Closed anoopd closed 2 years ago
Hey this is most likely due to some error happening inside the function you provide to lsp_installer.on_server_ready()
. I'd recommend commenting out that function line by line until it (hopefully) stops erroring
Thank you for the response . Will try it and let you know .
I tried it and after commenting out everything , the error vanished . I couldn't find out what i have messed up .
lsp_installer.on_server_ready(function(server)
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol
.make_client_capabilities())
local opts = {capabilities = capabilities}
if server.name == "sumneko_lua" then
opts = vim.tbl_deep_extend("force", {
settings = {
Lua = {
runtime = {version = 'LuaJIT', path = vim.split(package.path, ';')},
diagnostics = {globals = {'vim'}},
workspace = {library = vim.api.nvim_get_runtime_file("", true), checkThirdParty = false},
telemetry = {enable = false}
}
}
}, opts)
end
server:setup(opts)
end)
Do you think there is something wrong with the code ?
That seems fine to me, it also works if I use it in the minimal_debug_init.lua
Ok then ..... let me go through it once more . The problem is i am not familiar with lua, but will try to find out .
Ok so i had it solved . It was because i had a error while calling the settings from another file .
Problem description
After i installed and configured a few language servers with the help of nvim-lsp-installer i am getting the error
[nvim-lsp-installer] vim/shared.lua:0: after the second argument: expected table, got boolean
I am not that familiar with lua , so am not sure whether i am doing something wrong in my configs or is it something to do with the plugin itself .
Neovim version (>= 0.6)
NVIM v0.7.0-dev Build type: RelWithDebInfo LuaJIT 2.1.0-beta3
Operating system/version
inux anoops-ubuntu 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
all
Actual behavior
Error on starting nvim
Expected behavior
Nvim should start without any errors
Healthcheck output
Screenshots
No response