feat(java): enable inlay hints. Fixes #3244

This commit is contained in:
Folke Lemaitre 2024-05-20 20:42:10 +02:00
parent 3db94e44a0
commit e5ea8abd38
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -118,11 +118,18 @@ return {
dap = { hotcodereplace = "auto", config_overrides = {} }, dap = { hotcodereplace = "auto", config_overrides = {} },
dap_main = {}, dap_main = {},
test = true, test = true,
settings = {
java = {
inlayHints = {
parameterNames = {
enabled = "all",
},
},
},
},
} }
end, end,
config = function() config = function(_, opts)
local opts = LazyVim.opts("nvim-jdtls") or {}
-- Find the extra bundles that should be passed on the jdtls command-line -- Find the extra bundles that should be passed on the jdtls command-line
-- if nvim-dap is enabled with java debug/test. -- if nvim-dap is enabled with java debug/test.
local mason_registry = require("mason-registry") local mason_registry = require("mason-registry")