mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 19:28:59 +02:00
fix(java): dont error when not using cmp. Fixes #2038
This commit is contained in:
parent
3d4ab4eb26
commit
8d31bf230c
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ return {
|
||||||
bundles = bundles,
|
bundles = bundles,
|
||||||
},
|
},
|
||||||
-- enable CMP capabilities
|
-- enable CMP capabilities
|
||||||
capabilities = require("cmp_nvim_lsp").default_capabilities(),
|
capabilities = LazyVim.has("cmp-nvim-lsp") and require("cmp_nvim_lsp").default_capabilities() or nil,
|
||||||
}, opts.jdtls)
|
}, opts.jdtls)
|
||||||
|
|
||||||
-- Existing server will be reused if the root_dir matches.
|
-- Existing server will be reused if the root_dir matches.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue