Add lsp for java

This commit is contained in:
Lol3rrr
2026-04-29 11:47:40 +02:00
parent 84f4c6956e
commit 44c9a747e7
3 changed files with 9 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ vim.lsp.enable('tsserver')
-- },
--})
vim.lsp.enable('ruby-lsp')
vim.lsp.enable('java-lsp')
-- Setup Treesitter
require'nvim-treesitter'.setup {

View File

@@ -10,7 +10,7 @@
"nightfly": { "branch": "master", "commit": "4980ccc6de5f361fc9da116240ce7592e7d9a53a" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
"nvim-lspconfig": { "branch": "master", "commit": "bf5abe69c1874531f359a822d0cff4d73e26113f" },
"nvim-lspconfig": { "branch": "master", "commit": "6419b36f50c42420cbbf1d3ffba573094cf414c8" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-web-devicons": { "branch": "master", "commit": "4fc505ac7bd7692824a142e96e5f529c133862f8" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },

7
lsp/java-lsp.lua Normal file
View File

@@ -0,0 +1,7 @@
-- Install jdtls by hand, then use this
-- https://github.com/eclipse-jdtls/eclipse.jdt.ls
return {
filetypes = { "java" },
cmd = { "jdtls" },
root_markers = { ".git" },
}