add java support
This commit is contained in:
parent
0e61350c91
commit
94834be9e3
1 changed files with 27 additions and 0 deletions
27
init.lua
27
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,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue