I can't get nvim-java to work
This commit is contained in:
parent
4374b043ad
commit
1c9afc6559
11
init.lua
11
init.lua
|
@ -381,7 +381,6 @@ 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({})`
|
||||
|
@ -581,14 +580,6 @@ 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,
|
||||
|
@ -870,7 +861,7 @@ require('lazy').setup({
|
|||
-- Here are some example plugins that I've included in the Kickstart repository.
|
||||
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||
--
|
||||
-- require 'kickstart.plugins.debug',
|
||||
require 'kickstart.plugins.debug',
|
||||
-- require 'kickstart.plugins.indent_line',
|
||||
-- require 'kickstart.plugins.lint',
|
||||
-- require 'kickstart.plugins.autopairs',
|
||||
|
|
Loading…
Reference in New Issue