Nvim: Use default Java for LSP

This commit is contained in:
Marko Korhonen 2022-08-23 09:27:43 +03:00
parent f84f9b72f5
commit e35ccc8ae2
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5

View File

@ -4,7 +4,7 @@ local workspace_dir = nvim_local_dir .. '/jdtls-workspaces/' .. project_name
require('jdtls').start_or_attach({
cmd = {
'/usr/lib/jvm/java-17-openjdk-amd64/bin/java', '-Declipse.application=org.eclipse.jdt.ls.core.id1',
'/usr/bin/java', '-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',
@ -17,4 +17,4 @@ require('jdtls').start_or_attach({
}
})
require('pluginconf.lsp').lsp_map_keys('jdtls', nil)
require('plugins.lsp').lsp_map_keys('jdtls', nil)