Open ghost opened 7 months ago
What do you think about adding a function to retrieve a server table by name?
Mostly because lspconfig
only contains the "preconfigured" servers, and it wouldn't contain anything added directly via lsp.add_server
.
So something like
local sumneko = lsp.get_server_by_name("lua-language-server")
sumneko.settings.Lua.signatureHelp.enable = false
Or even something like
lsp.update_server_config("lua-language-server", {
settings = {
Lua = {
signatureHelp = { enable = false }
}
}
})
yeah that seems much better, I proposed lspconfig
because it looked like the most obvious place to configure LSP servers
Until the end of the month I won't be able to implement this as I don't have much time. Until then, anyone that wants to give this a try, I'd be glad to review and merge their proposal!
Currently, if you want to configure something at runtime (eg; change the command for a specific project) you need to do something like this in your
.lite_project.lua
Real world example of adding another path to Jedi's
init_options
:I think it would be easier if you could configure things using
lspconfig
, something like this:instead of digging through the code to find how to configure settings