File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ function M.setup(custom_config)
2828 { pattern = ' JavaSetup' , data = { config = config } }
2929 )
3030
31+ mason_dep .add_custom_registries (config .mason .registries )
32+
3133 if not startup_check () then
3234 return
3335 end
Original file line number Diff line number Diff line change @@ -11,18 +11,22 @@ local List = require('java-core.utils.list')
1111
1212local M = {}
1313
14- --- Install mason package dependencies for nvim-java
15- --- @param config java.Config
16- function M .install ( config )
14+ --- Add custom registries to mason
15+ --- @param registries java.Config
16+ function M .add_custom_registries ( registries )
1717 local mason_default_config = require (' mason.settings' ).current
1818
19- local registries = list_util
20- :new (config .mason .registries )
21- :concat (mason_default_config .registries )
19+ local new_registries =
20+ list_util :new (registries ):concat (mason_default_config .registries )
2221
2322 require (' mason' ).setup ({
24- registries = registries ,
23+ registries = new_registries ,
2524 })
25+ end
26+
27+ --- Install mason package dependencies for nvim-java
28+ --- @param config java.Config
29+ function M .install (config )
2630 local packages = M .get_pkg_list (config )
2731 local is_outdated = mason_util .is_outdated (packages )
2832
You can’t perform that action at this time.
0 commit comments