aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/managers/github
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-06-03 19:04:52 +0200
committerGitHub <noreply@github.com>2022-06-03 19:04:52 +0200
commitf5f6538984b5bc9bccfc544960e05d47304f3c5e (patch)
tree9f1f0fcd3b35a7ace0efc9966b652bb9b8234121 /lua/nvim-lsp-installer/core/managers/github
parentadded wgsl_analyzer server (#719) (diff)
downloadmason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.gz
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.bz2
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.lz
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.xz
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.zst
mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.zip
feat: add apex_ls (#746)
Closes #701.
Diffstat (limited to 'lua/nvim-lsp-installer/core/managers/github')
-rw-r--r--lua/nvim-lsp-installer/core/managers/github/client.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/core/managers/github/client.lua b/lua/nvim-lsp-installer/core/managers/github/client.lua
index bf79fec6..530fee06 100644
--- a/lua/nvim-lsp-installer/core/managers/github/client.lua
+++ b/lua/nvim-lsp-installer/core/managers/github/client.lua
@@ -24,6 +24,7 @@ end
---@async
---@param repo string @The GitHub repo ("username/repo").
+---@return Result @of GitHubRelease[]
function M.fetch_releases(repo)
log.fmt_trace("Fetching GitHub releases for repo=%s", repo)
local path = ("repos/%s/releases"):format(repo)
@@ -87,7 +88,7 @@ end
---@async
---@param repo string @The GitHub repo ("username/repo").
----@return Result @of [GitHubTag[]]
+---@return Result @of GitHubTag[]
function M.fetch_tags(repo)
local path = ("repos/%s/tags"):format(repo)
return api_call(path):map_err(function()
@@ -97,7 +98,7 @@ end
---@async
---@param repo string @The GitHub repo ("username/repo").
----@return Result @of [GitHubTag]
+---@return Result @of GitHubTag
function M.fetch_latest_tag(repo)
return M.fetch_tags(repo):map_catching(function(tags)
if vim.tbl_count(tags) == 0 then