mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-28 22:08:19 +02:00
feat(extra): allow users to add custom bundles through opts.init_options.bundles to jdtls
This commit is contained in:
parent
25abbf546d
commit
bf17229fce
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ return {
|
||||||
-- Find the extra bundles that should be passed on the jdtls command-line
|
-- Find the extra bundles that should be passed on the jdtls command-line
|
||||||
-- if nvim-dap is enabled with java debug/test.
|
-- if nvim-dap is enabled with java debug/test.
|
||||||
local bundles = {} ---@type string[]
|
local bundles = {} ---@type string[]
|
||||||
|
|
||||||
|
-- Allow users to add custom bundles through opts.init_options.bundles
|
||||||
|
if opts.init_options and opts.init_options.bundles then
|
||||||
|
vim.list_extend(bundles, opts.init_options.bundles)
|
||||||
|
end
|
||||||
|
|
||||||
if LazyVim.has("mason.nvim") then
|
if LazyVim.has("mason.nvim") then
|
||||||
local mason_registry = require("mason-registry")
|
local mason_registry = require("mason-registry")
|
||||||
if opts.dap and LazyVim.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
|
if opts.dap and LazyVim.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue