diff options
| author | William Boman <william@redwill.se> | 2021-10-31 23:00:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-31 23:00:56 +0100 |
| commit | 3ba7961db19a66595085f06304b13f97155611bd (patch) | |
| tree | 36eb51df040428d7bc279209ec1a8e5af114913f /lua/nvim-lsp-installer/installers/init.lua | |
| parent | sumneko_lua: remove settings (diff) | |
| download | mason-3ba7961db19a66595085f06304b13f97155611bd.tar mason-3ba7961db19a66595085f06304b13f97155611bd.tar.gz mason-3ba7961db19a66595085f06304b13f97155611bd.tar.bz2 mason-3ba7961db19a66595085f06304b13f97155611bd.tar.lz mason-3ba7961db19a66595085f06304b13f97155611bd.tar.xz mason-3ba7961db19a66595085f06304b13f97155611bd.tar.zst mason-3ba7961db19a66595085f06304b13f97155611bd.zip | |
pip3: promote install_dir to server's root dir immediately (#230)
Diffstat (limited to 'lua/nvim-lsp-installer/installers/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/installers/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/installers/init.lua b/lua/nvim-lsp-installer/installers/init.lua index 08218945..fdf3b0f4 100644 --- a/lua/nvim-lsp-installer/installers/init.lua +++ b/lua/nvim-lsp-installer/installers/init.lua @@ -97,7 +97,7 @@ function M.always_succeed(installer) end ---@param platform_table table<Platform, ServerInstallerFunction> ----@return ServerInstallerFunction | nil +---@return ServerInstallerFunction | ServerInstallerFunction[] | nil local function get_by_platform(platform_table) if platform.is_mac then return platform_table.mac or platform_table.unix @@ -133,7 +133,7 @@ end --- Creates a server installer that executes the given installer for the current platform. --- If there is no server installer provided for the current platform, the installer will instantly exit with a failure. ----@param platform_table table<Platform, ServerInstallerFunction> +---@param platform_table table<Platform, ServerInstallerFunction|ServerInstallerFunction[]> ---@return ServerInstallerFunction function M.when(platform_table) return function(server, callback, context) |
