diff options
| author | William Boman <william@redwill.se> | 2026-05-14 17:21:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-14 17:21:42 +0200 |
| commit | 8e921c2b68571e978db5d4d3fef9c9a7f8755473 (patch) | |
| tree | c16d4b5c8a6e33877c523d2e7ff714090432a8de /lua/mason-registry/sources/github.lua | |
| parent | fix(pypi): add python 3.13 and 3.14 to list of fallbacks (#2081) (diff) | |
| download | mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar.gz mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar.bz2 mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar.lz mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar.xz mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.tar.zst mason-8e921c2b68571e978db5d4d3fef9c9a7f8755473.zip | |
This enables `mason.nvim` to start managing certain packages that:
1) are not suitable for the core registry
2) should not surface in existing APIs and UIs
Diffstat (limited to 'lua/mason-registry/sources/github.lua')
| -rw-r--r-- | lua/mason-registry/sources/github.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/mason-registry/sources/github.lua b/lua/mason-registry/sources/github.lua index 2b177bdd..7b650ae8 100644 --- a/lua/mason-registry/sources/github.lua +++ b/lua/mason-registry/sources/github.lua @@ -29,7 +29,8 @@ local GitHubRegistrySource = {} GitHubRegistrySource.__index = GitHubRegistrySource ---@param spec GitHubRegistrySourceSpec -function GitHubRegistrySource:new(spec) +---@param system boolean +function GitHubRegistrySource:new(spec, system) ---@type GitHubRegistrySource local instance = {} setmetatable(instance, GitHubRegistrySource) @@ -38,6 +39,7 @@ function GitHubRegistrySource:new(spec) instance.spec = spec instance.repo = ("%s/%s"):format(spec.namespace, spec.name) instance.root_dir = root_dir + instance.system = system instance.data_file = path.concat { root_dir, "registry.json" } instance.info_file = path.concat { root_dir, "info.json" } return instance |
