fix: nvim-java mason reg is added if the mason config does not consid… by s1n7ax · Pull Request #355 · nvim-java/nvim-java · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
12 changes: 6 additions & 6 deletions lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ return {
},
{
'williamboman/mason.nvim',
opts = {
registries = {
'github:nvim-java/mason-registry',
'github:mason-org/mason-registry',
},
},
-- opts = {
-- registries = {
-- 'github:nvim-java/mason-registry',
-- 'github:mason-org/mason-registry',
-- },
-- },
},
},
}
9 changes: 9 additions & 0 deletions lua/java/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
---@field jdk { auto_install: boolean, version: string }
---@field notifications { dap: boolean }
---@field verification { invalid_order: boolean, duplicate_setup_calls: boolean, invalid_mason_registry: boolean }
---@field mason { registries: string[] }
local config = {
-- list of file that exists in root of the project
root_markers = {
Expand Down Expand Up @@ -83,6 +84,14 @@ local config = {
-- will stop setup
invalid_mason_registry = false,
},

mason = {
-- These mason registries will be prepended to the existing mason
-- configuration
registries = {
'github:nvim-java/mason-registry',
},
},
}

return config
10 changes: 10 additions & 0 deletions lua/java/startup/mason-dep.lua