aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/sources/lua.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2026-05-14 17:21:42 +0200
committerGitHub <noreply@github.com>2026-05-14 17:21:42 +0200
commit8e921c2b68571e978db5d4d3fef9c9a7f8755473 (patch)
treec16d4b5c8a6e33877c523d2e7ff714090432a8de /lua/mason-registry/sources/lua.lua
parentfix(pypi): add python 3.13 and 3.14 to list of fallbacks (#2081) (diff)
downloadmason-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
feat: add the infrastructure to support "system" packages (#2085)HEADmain
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/lua.lua')
-rw-r--r--lua/mason-registry/sources/lua.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/mason-registry/sources/lua.lua b/lua/mason-registry/sources/lua.lua
index 40e728b6..273655c0 100644
--- a/lua/mason-registry/sources/lua.lua
+++ b/lua/mason-registry/sources/lua.lua
@@ -13,12 +13,14 @@ local LuaRegistrySource = {}
LuaRegistrySource.__index = LuaRegistrySource
---@param spec LuaRegistrySourceSpec
-function LuaRegistrySource:new(spec)
+---@param system boolean
+function LuaRegistrySource:new(spec, system)
---@type LuaRegistrySource
local instance = {}
setmetatable(instance, LuaRegistrySource)
instance.id = spec.id
instance.spec = spec
+ instance.system = system
return instance
end