From e35ccc8ae2973ac48e2bd105664be66b2439916a Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 23 Aug 2022 09:27:43 +0300 Subject: [PATCH] Nvim: Use default Java for LSP --- home/.config/nvim/ftplugin/java.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.config/nvim/ftplugin/java.lua b/home/.config/nvim/ftplugin/java.lua index 72bac9a..d193761 100644 --- a/home/.config/nvim/ftplugin/java.lua +++ b/home/.config/nvim/ftplugin/java.lua @@ -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)