From e267fe517feaaf7a48323349e3775944db49c158 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 29 Sep 2021 13:48:39 +0200 Subject: support installing specific version of language servers, defaults to latest (#106) --- lua/nvim-lsp-installer/server.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/nvim-lsp-installer/server.lua') 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 -- cgit v1.2.3-70-g09d2