mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-15 05:23:50 +00:00
install jdtls with mason
This commit is contained in:
parent
811f2c71d9
commit
13b7af2302
@ -217,12 +217,17 @@ return {
|
|||||||
'markdownlint',
|
'markdownlint',
|
||||||
'isort',
|
'isort',
|
||||||
'black',
|
'black',
|
||||||
|
'jdtls',
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
require('mason-lspconfig').setup {
|
require('mason-lspconfig').setup {
|
||||||
handlers = {
|
handlers = {
|
||||||
function(server_name)
|
function(server_name)
|
||||||
|
if server_name == 'jdtls' then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local server = servers[server_name] or {}
|
local server = servers[server_name] or {}
|
||||||
-- This handles overriding only values explicitly passed
|
-- This handles overriding only values explicitly passed
|
||||||
-- by the server configuration above. Useful when disabling
|
-- by the server configuration above. Useful when disabling
|
||||||
|
Loading…
Reference in New Issue
Block a user