diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-06-03 18:16:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 18:16:11 +0200 |
commit | c6d747e6a5227e17556c62e16ed054398eb1a89a (patch) | |
tree | 67117afbf86c9ee2d951f7be261ccba54d32858e /runtime/lua/vim/lsp.lua | |
parent | 9aba2043351c79cd9bc8fa7b229ee7629ba178f0 (diff) | |
download | rneovim-c6d747e6a5227e17556c62e16ed054398eb1a89a.tar.gz rneovim-c6d747e6a5227e17556c62e16ed054398eb1a89a.tar.bz2 rneovim-c6d747e6a5227e17556c62e16ed054398eb1a89a.zip |
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.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 6bf772ed65..361bcec04b 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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 |