aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/receipt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/core/receipt.lua')
-rw-r--r--lua/nvim-lsp-installer/core/receipt.lua22
1 files changed, 1 insertions, 21 deletions
diff --git a/lua/nvim-lsp-installer/core/receipt.lua b/lua/nvim-lsp-installer/core/receipt.lua
index 21600eae..4517256a 100644
--- a/lua/nvim-lsp-installer/core/receipt.lua
+++ b/lua/nvim-lsp-installer/core/receipt.lua
@@ -18,6 +18,7 @@ local M = {}
---| '"jdtls"'
---| '"git"'
---| '"github_tag"'
+---| '"github_release"'
---| '"github_release_file"'
---@alias InstallReceiptSource {type: InstallReceiptSourceType}
@@ -135,27 +136,6 @@ function InstallReceiptBuilder.git_remote(remote_url)
return { type = "git", remote = remote_url }
end
----@param ctx ServerInstallContext
----@param opts FetchLatestGithubReleaseOpts|nil
-function InstallReceiptBuilder.github_release_file(ctx, opts)
- opts = opts or {}
- return {
- type = "github_release_file",
- repo = ctx.github_repo,
- file = ctx.github_release_file,
- release = ctx.requested_server_version,
- tag_name_pattern = opts.tag_name_pattern,
- }
-end
-
-function InstallReceiptBuilder.github_tag(ctx)
- return {
- type = "github_tag",
- repo = ctx.github_repo,
- tag = ctx.requested_server_version,
- }
-end
-
---@class InstallReceipt
---@field public name string
---@field public schema_version InstallReceiptSchemaVersion