mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
feat(lsp): send didChangeConfiguration after init (#18847)
Most LSP servers require the notification to correctly load the settings and for those who don't it doesn't cause any harm. So far this is done in lspconfig, but with the addition of vim.lsp.start it should be part of core.
This commit is contained in:

committed by
GitHub

parent
9aba204335
commit
c6d747e6a5
@@ -1117,6 +1117,10 @@ function lsp.start_client(config)
|
||||
end
|
||||
end
|
||||
|
||||
if next(config.settings) then
|
||||
client.notify('workspace/didChangeConfiguration', { settings = config.settings })
|
||||
end
|
||||
|
||||
if config.on_init then
|
||||
local status, err = pcall(config.on_init, client, result)
|
||||
if not status then
|
||||
|
Reference in New Issue
Block a user