diff options
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/server.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua index 93102054..a6299136 100644 --- a/lua/nvim-lsp-installer/server.lua +++ b/lua/nvim-lsp-installer/server.lua @@ -78,7 +78,7 @@ function M.Server:install() status_win().install_server(self) end -function M.Server:install_attached(opts, callback) +function M.Server:install_attached(context, callback) self:uninstall() self:create_root_dir() local install_ok, install_err = pcall(self._installer, self, function(success) @@ -92,9 +92,9 @@ function M.Server:install_attached(opts, callback) end) end callback(success) - end, opts) + end, context) if not install_ok then - opts.stdio_sink.stderr(tostring(install_err)) + context.stdio_sink.stderr(tostring(install_err)) callback(false) end end |
