mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
cleaner code
This commit is contained in:
parent
3c4dd57c88
commit
e5ac0b22a2
1 changed files with 7 additions and 11 deletions
|
|
@ -163,18 +163,14 @@ return {
|
||||||
}, opts.jdtls)
|
}, opts.jdtls)
|
||||||
|
|
||||||
if opts.enableInlayHints == true then
|
if opts.enableInlayHints == true then
|
||||||
local inlayHintsConfig = function()
|
|
||||||
local extendedClientCapabilities = require("jdtls").extendedClientCapabilities
|
local extendedClientCapabilities = require("jdtls").extendedClientCapabilities
|
||||||
|
|
||||||
return {
|
extend_or_override(config, {
|
||||||
extendedClientCapabilities = extendedClientCapabilities,
|
extendedClientCapabilities = extendedClientCapabilities,
|
||||||
parameterNames = {
|
parameterNames = {
|
||||||
enabled = "all",
|
enabled = "all",
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
end
|
|
||||||
|
|
||||||
extend_or_override(config, inlayHintsConfig())
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Existing server will be reused if the root_dir matches.
|
-- Existing server will be reused if the root_dir matches.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue