mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
feat(extra): allow users to add custom bundles through opts.init_options.bundles to jdtls (#6265)
Allow users to add custom bundles through opts.init_options.bundles to jdtls with lang java extra is on.
This commit is contained in:
parent
ac4cce0f2f
commit
faeb24ba95
1 changed files with 10 additions and 0 deletions
|
|
@ -157,6 +157,16 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Allow users to add custom bundles through opts.init_options.bundles and opts.jdtls.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 function attach_jdtls()
|
||||||
local fname = vim.api.nvim_buf_get_name(0)
|
local fname = vim.api.nvim_buf_get_name(0)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue