Allow users to add custom bundles through opts.init_options.bundles only

This commit is contained in:
Zapan Gao 2025-12-16 16:14:43 +08:00
parent 749f24dc6a
commit c7291614da

View file

@ -158,14 +158,10 @@ return {
end
end
-- Allow users to add custom bundles through opts.init_options.bundles and opts.jdtls.init_options.bundles
-- 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 opts.jdtls and opts.jdtls.init_options and opts.jdtls.init_options.bundles then
vim.list_extend(bundles, opts.jdtls.init_options.bundles)
opts.jdtls.init_options.bundles = nil
end
local function attach_jdtls()
local fname = vim.api.nvim_buf_get_name(0)