java: fix autoformatter that comes with jdtls

This commit is contained in:
kossLAN 2024-09-01 01:03:10 -04:00
parent 01583ed06c
commit 30c6c69557
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
2 changed files with 12 additions and 3 deletions

View file

@ -13,4 +13,13 @@ vim.lsp.start {
cmd = { 'jdtls' },
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
capabilities = require('user.lsp').make_client_capabilities(),
settings = {
java = {
format = {
enabled = true,
insertSpaces = true,
tabSize = 10,
},
},
},
}