You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
827 B
27 lines
827 B
local config = {
|
|
cmd = {
|
|
'java',
|
|
'-Djava.net.useSystemProxies=true',
|
|
'-Declipse.application=org.eclipse.jdt.ls.core.id1',
|
|
'-Dosgi.bundles.defaultStartLevel=4',
|
|
'-Declipse.product=org.eclipse.jdt.ls.core.product',
|
|
'-Dlog.protocol=true',
|
|
'-Dlog.level=ALL',
|
|
'-Xms1g',
|
|
'--add-modules=ALL-SYSTEM',
|
|
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
|
|
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
|
|
'-jar', vim.fn.glob('/opt/jdtls/plugins/org.eclipse.equinox.launcher_*.jar'),
|
|
'-configuration', '/opt/jdtls/config_linux',
|
|
'-data', '/opt/jdtls/data'
|
|
},
|
|
root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}),
|
|
settings = {
|
|
java = {
|
|
}
|
|
},
|
|
init_options = {
|
|
bundles = {}
|
|
},
|
|
}
|
|
require('jdtls').start_or_attach(config)
|
|
|