mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Revert "feat(extra): allow users to add custom bundles through opts.init_options.bundles to jdtls (#6265)"
This reverts commit faeb24ba95.
Fixes:
```
Failed to run `config` for nvim-jdtls
...im/lazy/LazyVim/lua/lazyvim/plugins/extras/lang/java.lua:165: attempt to index field 'jdtls' (a function value)
- /LazyVim/lua/lazyvim/plugins/extras/lang/java.lua:165 _in_ **config**
- ~/.local/share/bob/nightly/share/nvim/runtime/filetype.lua:36
- vim/shared.lua:0
- ~/.local/share/bob/nightly/share/nvim/runtime/filetype.lua:35
- vim/_editor.lua:0 _in_ **cmd**
- /snacks.nvim/lua/snacks/picker/actions.lua:115 _in_ **fn**
- /snacks.nvim/lua/snacks/win.lua:339
```
`init_options.bundles` already can be overridden by `opts.jdtls`,
see: https://github.com/LazyVim/LazyVim/pull/6265#issuecomment-3203831504
This commit is contained in:
parent
0b65d33d85
commit
0945c0bb58
1 changed files with 0 additions and 10 deletions
|
|
@ -157,16 +157,6 @@ return {
|
|||
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 fname = vim.api.nvim_buf_get_name(0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue