jdtls - java language server working
This commit is contained in:
parent
557468856d
commit
66f718bedf
4 changed files with 294 additions and 3 deletions
10
init.lua
10
init.lua
|
|
@ -115,7 +115,7 @@ require('lazy').setup({
|
|||
},
|
||||
|
||||
-- Useful plugin to show you pending keybinds.
|
||||
{ 'folke/which-key.nvim', opts = {} },
|
||||
{ 'folke/which-key.nvim', opts = {} },
|
||||
{
|
||||
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||
'lewis6991/gitsigns.nvim',
|
||||
|
|
@ -147,10 +147,10 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
|
||||
|
||||
{ 'mfussenegger/nvim-jdtls' },
|
||||
|
||||
-- "gc" to comment visual regions/lines
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
|
||||
-- Fuzzy Finder (files, lsp, etc)
|
||||
{
|
||||
|
|
@ -441,6 +441,7 @@ local servers = {
|
|||
pyright = {},
|
||||
rust_analyzer = {},
|
||||
tsserver = {},
|
||||
jdtls = { filetypes = { 'java' } },
|
||||
html = { filetypes = { 'html', 'twig', 'hbs' } },
|
||||
|
||||
lua_ls = {
|
||||
|
|
@ -467,6 +468,9 @@ mason_lspconfig.setup {
|
|||
|
||||
mason_lspconfig.setup_handlers {
|
||||
function(server_name)
|
||||
if server_name == 'jdtls' then
|
||||
return
|
||||
end
|
||||
require('lspconfig')[server_name].setup {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue