diff --git a/lua/astrocommunity/lsp/nvim-java/README.md b/lua/astrocommunity/lsp/nvim-java/README.md new file mode 100644 index 000000000..11bce3760 --- /dev/null +++ b/lua/astrocommunity/lsp/nvim-java/README.md @@ -0,0 +1,5 @@ +# nvim-java + +Painless Java in Neovim + +**Repository:** diff --git a/lua/astrocommunity/lsp/nvim-java/init.lua b/lua/astrocommunity/lsp/nvim-java/init.lua new file mode 100644 index 000000000..3036af84c --- /dev/null +++ b/lua/astrocommunity/lsp/nvim-java/init.lua @@ -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, + }, + }, + }, + }, +}