add java support

This commit is contained in:
Peter Tillemans 2024-04-29 15:01:27 +02:00
parent 0e61350c91
commit 94834be9e3

View file

@ -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,
},