Skip to content

Commit

Permalink
feat(lsp): add nvim-java plugin (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Jul 15, 2024
1 parent 03a8495 commit c43e5a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/lsp/nvim-java/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-java

Painless Java in Neovim

**Repository:** <https://github.com/nvim-java/nvim-java>
22 changes: 22 additions & 0 deletions lua/astrocommunity/lsp/nvim-java/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
return {
"nvim-java/nvim-java",
lazy = true,
opts = {},
specs = {
{ "mfussenegger/nvim-jdtls", optional = true, enabled = false },
{
"AstroNvim/astrolsp",
optional = true,
---@type AstroLSPOpts
opts = {
servers = { "jdtls" },
handlers = {
jdtls = function(server, opts)
require("lazy").load { plugins = { "nvim-java" } }
require("lspconfig")[server].setup(opts)
end,
},
},
},
},
}

0 comments on commit c43e5a7

Please sign in to comment.