aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index cd04cb51..aeaa5ba2 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -117,8 +117,9 @@ function M.Server:is_installed()
end
---Queues the server to be asynchronously installed.
-function M.Server:install()
- status_win().install_server(self)
+---@param version string|nil @The version of the server to install. If nil, the latest version will be installed.
+function M.Server:install(version)
+ status_win().install_server(self, version)
end
---@param context ServerInstallContext