fix(mason): add type safety to mason registry modfication - Commit 668e9e50 - AstroNvim_user
-
fix(mason): add type safety to mason registry modfication
-
1 | 1 | | return { |
2 | 2 | | "williamboman/mason.nvim", |
3 | | - | opts = { |
4 | | - | registries = { |
5 | | - | "lua:custom-registry", |
6 | | - | "github:mason-org/mason-registry", |
7 | | - | }, |
8 | | - | }, |
| 3 | + | opts = function(_, opts) |
| 4 | + | opts.registries = require("astrocore").list_insert_unique( |
| 5 | + | opts.registries, |
| 6 | + | { "lua:custom-registry", "github:mason-org/mason-registry" } |
| 7 | + | ) |
| 8 | + | end, |
9 | 9 | | } |
10 | 10 | | |
Page is in error, reload to recover