diff options
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/server.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua index a2bc4b5d..ccad4c77 100644 --- a/lua/nvim-lsp-installer/server.lua +++ b/lua/nvim-lsp-installer/server.lua @@ -87,7 +87,9 @@ function M.Server:install_attached(opts, callback) if not success then pcall(self.uninstall, self) else - dispatcher.dispatch_server_ready(self) + vim.schedule(function() + dispatcher.dispatch_server_ready(self) + end) end callback(success) end, opts) |
