add more instructions on how to install the jdtls lsp client
This commit is contained in:
@ -4,7 +4,18 @@ if not status_ok then
|
|||||||
end
|
end
|
||||||
|
|
||||||
jdtls.start_or_attach {
|
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(
|
root_dir = vim.fs.dirname(
|
||||||
vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]
|
vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]
|
||||||
),
|
),
|
||||||
|
@ -89,7 +89,7 @@ require 'dep' {
|
|||||||
{ 'folke/trouble.nvim' },
|
{ 'folke/trouble.nvim' },
|
||||||
|
|
||||||
-- optional language specific lsp's
|
-- optional language specific lsp's
|
||||||
-- { 'mfussenegger/nvim-jdtls' },
|
-- { 'mfussenegger/nvim-jdtls' }, -- java lsp server
|
||||||
|
|
||||||
-- dap ----------------------------------------------------------------------
|
-- dap ----------------------------------------------------------------------
|
||||||
{ 'mfussenegger/nvim-dap',
|
{ 'mfussenegger/nvim-dap',
|
||||||
|
Reference in New Issue
Block a user