cleaner code

This commit is contained in:
Delice0 2024-05-19 22:49:14 +03:00
parent 3c4dd57c88
commit e5ac0b22a2

View file

@ -163,18 +163,14 @@ return {
}, opts.jdtls)
if opts.enableInlayHints == true then
local inlayHintsConfig = function()
local extendedClientCapabilities = require("jdtls").extendedClientCapabilities
return {
extend_or_override(config, {
extendedClientCapabilities = extendedClientCapabilities,
parameterNames = {
enabled = "all",
},
}
end
extend_or_override(config, inlayHintsConfig())
})
end
-- Existing server will be reused if the root_dir matches.