summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-04-30 22:19:05 -0400
committerSquibid <me@zacharyscheiman.com>2023-04-30 22:19:05 -0400
commit1e3b85db555e7f158737bd3e4d93b33e78fd1785 (patch)
tree2370c6a85c6a0fb4a62d60294a0fa0cc1760f950
parent9086a26857bf1add64c42856e346df937fd78e7c (diff)
downloadnvim-1e3b85db555e7f158737bd3e4d93b33e78fd1785.tar.gz
nvim-1e3b85db555e7f158737bd3e4d93b33e78fd1785.tar.bz2
nvim-1e3b85db555e7f158737bd3e4d93b33e78fd1785.zip
add more instructions on how to install the jdtls lsp client
Diffstat (limited to '')
-rw-r--r--after/ftplugin/java.lua13
-rw-r--r--lua/core/plugins.lua2
2 files changed, 13 insertions, 2 deletions
diff --git a/after/ftplugin/java.lua b/after/ftplugin/java.lua
index 575ab1c..c2c22f2 100644
--- a/after/ftplugin/java.lua
+++ b/after/ftplugin/java.lua
@@ -4,7 +4,18 @@ if not status_ok then
end
jdtls.start_or_attach {
- cmd = {'/home/squibid/Downloads/jdt-lang-serv/bin/jdtls'},
+ --[[
+ There are 3 ways to get the jdtls server (ranked from easiest to hardest):
+ 1. Install it from your distros repo
+ 2. Download a milestone from: https://download.eclipse.org/jdtls/milestones
+ then extract it.
+ 3. Compile it from source: https://github.com/eclipse/eclipse.jdt.ls
+ good luck :)
+
+ For all 3 of these you need to put the path to the jdtls binary in the
+ "cmd" section below
+ ]]
+ cmd = {''},
root_dir = vim.fs.dirname(
vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]
),
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
index 18e16e6..5be7755 100644
--- a/lua/core/plugins.lua
+++ b/lua/core/plugins.lua
@@ -89,7 +89,7 @@ require 'dep' {
{ 'folke/trouble.nvim' },
-- optional language specific lsp's
- -- { 'mfussenegger/nvim-jdtls' },
+ -- { 'mfussenegger/nvim-jdtls' }, -- java lsp server
-- dap ----------------------------------------------------------------------
{ 'mfussenegger/nvim-dap',