nvim: Update Java/JDT configuration
This commit is contained in:
parent
399fc584dd
commit
8452ea90e4
1 changed files with 16 additions and 2 deletions
|
|
@ -4,12 +4,15 @@ vim.opt.colorcolumn = "120"
|
|||
vim.opt.textwidth = 120
|
||||
|
||||
require('jdtls').start_or_attach({
|
||||
cmd = {'jdtls'},
|
||||
cmd = {
|
||||
'jdtls',
|
||||
'-parameters'
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
require('jdtls').setup_dap({hotcodereplace = 'auto'})
|
||||
require('jdtls.dap').setup_dap_main_class_configs()
|
||||
end,
|
||||
root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'mvnw'}, { upward = true })[1]),
|
||||
root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'gradle.properties'}, { upward = true })[1]),
|
||||
init_options = {
|
||||
bundles = {
|
||||
vim.fn.expand("/usr/share/java-debug/com.microsoft.java.debug.core.jar"),
|
||||
|
|
@ -51,6 +54,17 @@ require('jdtls').start_or_attach({
|
|||
url = "/home/oliver/Dokumente/Gallery Systems/Products/GS Eclipse Formatter Java.xml"
|
||||
},
|
||||
},
|
||||
codeGeneration = {
|
||||
--generateComments = true,
|
||||
insertionLocation = 'lastMember',
|
||||
hashCodeEquals = {
|
||||
useInstanceof = true,
|
||||
useJava7Objects = true,
|
||||
},
|
||||
},
|
||||
telemetry = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue