Added nvim-java
This commit is contained in:
parent
ce276f34a3
commit
0b96a5b29d
10
init.lua
10
init.lua
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue