mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
java: fix autoformatter that comes with jdtls
This commit is contained in:
parent
01583ed06c
commit
30c6c69557
2 changed files with 12 additions and 3 deletions
|
|
@ -13,4 +13,13 @@ vim.lsp.start {
|
||||||
cmd = { 'jdtls' },
|
cmd = { 'jdtls' },
|
||||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||||
capabilities = require('user.lsp').make_client_capabilities(),
|
capabilities = require('user.lsp').make_client_capabilities(),
|
||||||
|
settings = {
|
||||||
|
java = {
|
||||||
|
format = {
|
||||||
|
enabled = true,
|
||||||
|
insertSpaces = true,
|
||||||
|
tabSize = 10,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@ opt.spell = true
|
||||||
opt.spelllang = 'en'
|
opt.spelllang = 'en'
|
||||||
|
|
||||||
opt.expandtab = true
|
opt.expandtab = true
|
||||||
opt.tabstop = 2
|
opt.tabstop = 4
|
||||||
opt.softtabstop = 2
|
opt.softtabstop = 4
|
||||||
opt.shiftwidth = 2
|
opt.shiftwidth = 4
|
||||||
opt.foldenable = true
|
opt.foldenable = true
|
||||||
opt.history = 2000
|
opt.history = 2000
|
||||||
opt.nrformats = 'bin,hex' -- 'octal'
|
opt.nrformats = 'bin,hex' -- 'octal'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue