Added nvim-java

This commit is contained in:
Diego Miguel M. Villamil 2025-03-25 00:31:58 +08:00
parent ce276f34a3
commit 0b96a5b29d
1 changed files with 10 additions and 0 deletions

View File

@ -381,6 +381,7 @@ require('lazy').setup({
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim',
'nvim-java/nvim-java',
-- Useful status updates for LSP.
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
@ -532,6 +533,7 @@ require('lazy').setup({
pyright = {},
rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
cssls = {},
ts_ls = {},
slint_lsp = {
-- command = 'slint-lsp',
@ -579,6 +581,14 @@ require('lazy').setup({
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
require('lspconfig')[server_name].setup(server)
end,
-- For some reason jdtls has to be put here
-- instead of being in the servers list above
-- sample kickstart nvim config from the nvim-java developer
-- https://github.com/nvim-java/starter-kickstart/blob/master/init.lua
jdtls = function()
require('java').setup {}
require('lspconfig').jdtls.setup {}
end,
},
}
end,