diff --git a/init.lua b/init.lua index ce2dd25..9c9f4fe 100644 --- a/init.lua +++ b/init.lua @@ -303,6 +303,28 @@ require('lazy').setup({ config = true, }, + { + 'nvim-java/nvim-java', + dependencies = { + 'nvim-java/lua-async-await', + 'nvim-java/nvim-java-core', + 'nvim-java/nvim-java-test', + 'nvim-java/nvim-java-dap', + 'MunifTanjim/nui.nvim', + 'neovim/nvim-lspconfig', + 'mfussenegger/nvim-dap', + { + 'williamboman/mason.nvim', + opts = { + registries = { + 'github:nvim-java/mason-registry', + 'github:mason-org/mason-registry', + }, + }, + }, + }, + }, + -- NOTE: Plugins can also be configured to run lua code when they are loaded. -- -- This is often very useful to both group configuration, as well as handle @@ -609,6 +631,9 @@ require('lazy').setup({ yamlls = {}, } + -- Setup java before lspconfig + require('java').setup() + -- Ensure the servers and tools above are installed -- To check the current status of installed tools and/or manually install -- other tools, you can run @@ -637,6 +662,8 @@ require('lazy').setup({ end, }, } + + require('lspconfig').jdtls.setup {} end, },