Skip to content

Commit b7ad5de

Browse files
committed
Add nvim-java and JDTLS
1 parent 95a3fff commit b7ad5de

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lua/plugins/nvim-java.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- nvim-java is easy to setup and work with Eclipse's JDTLS out of the box.
2+
-- However, it doesn't seem to support jumping into standard library right now.
3+
return { 'nvim-java/nvim-java' }

lua/plugins/nvim-lspconfig.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ return { -- LSP Configuration & Plugins
157157
local servers = {
158158
-- clangd = {},
159159
-- gopls = {},
160-
pyright = {},
160+
pyright = {
161+
-- NOTE: Required Pyright to be installed.
162+
},
161163
-- rust_analyzer = {},
162164
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
163165
--
@@ -168,6 +170,11 @@ return { -- LSP Configuration & Plugins
168170
-- tsserver = {},
169171
--
170172

173+
jdtls = {
174+
-- NOTE: Required Eclipse's JDTLS
175+
-- https://github.com/eclipse-jdtls/eclipse.jdt.ls#installation
176+
},
177+
171178
lua_ls = {
172179
-- cmd = {...},
173180
-- filetypes = { ...},

0 commit comments

Comments
 (0)