aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-11-17 16:15:48 +0100
committerWilliam Boman <william@redwill.se>2021-11-17 16:15:48 +0100
commit35d08bb4e91cda16778f0cf887291e2f3dd6f6a8 (patch)
treecf46bc70997e71fea724ae8c105c33400d1b4808 /lua/nvim-lsp-installer
parentInclude jsonnet-language-server installation (#240) (diff)
downloadmason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar.gz
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar.bz2
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar.lz
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar.xz
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.tar.zst
mason-35d08bb4e91cda16778f0cf887291e2f3dd6f6a8.zip
server: add {version} param to server:install()
Diffstat (limited to 'lua/nvim-lsp-installer')
-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