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
|
vim.opt.textwidth = 120
|
||||||
|
|
||||||
require('jdtls').start_or_attach({
|
require('jdtls').start_or_attach({
|
||||||
cmd = {'jdtls'},
|
cmd = {
|
||||||
|
'jdtls',
|
||||||
|
'-parameters'
|
||||||
|
},
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
require('jdtls').setup_dap({hotcodereplace = 'auto'})
|
require('jdtls').setup_dap({hotcodereplace = 'auto'})
|
||||||
require('jdtls.dap').setup_dap_main_class_configs()
|
require('jdtls.dap').setup_dap_main_class_configs()
|
||||||
end,
|
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 = {
|
init_options = {
|
||||||
bundles = {
|
bundles = {
|
||||||
vim.fn.expand("/usr/share/java-debug/com.microsoft.java.debug.core.jar"),
|
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"
|
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…
Reference in a new issue