fix: jdtls cleanup

This commit is contained in:
əlemi 2023-01-23 22:01:11 +01:00
parent 2665133e25
commit 3f05637482
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -288,16 +288,8 @@ local init_fn = function(use)
lspconfig.pylsp.setup({capabilites = capabilities, on_attach = set_lsp_binds, settings = { pylsp = { plugins = { pycodestyle = { enabled = false } } } } })
lspconfig.clangd.setup({capabilities=capabilities, on_attach=set_lsp_binds})
lspconfig.ltex.setup({capabilities=capabilities, on_attach=set_lsp_binds})
local jdtls_bin_path = os.getenv("JDTLS_BIN_PATH") or "jdtls"
local home_path = os.getenv("HOME") or "~" -- TODO this is not windows friendly
lspconfig.jdtls.setup({
capabilities=capabilities,
on_attach=set_lsp_binds,
cmd = {jdtls_bin_path, "-configuration", home_path .. "/.cache/jdtls/config", "-data", home_path .. "/.cache/jdtls/workspace" },
workspace = home_path .. "/.cache/jdtls/workspace",
-- root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}),
})
lspconfig.kotlin_language_server.setup({capabilities=capabilities, on_attach=set_lsp_binds})
lspconfig.jdtls.setup({capabilities=capabilities, on_attach=set_lsp_binds})
lspconfig.sumneko_lua.setup({
capabilites=capabilities,
on_attach=set_lsp_binds,
@ -310,8 +302,6 @@ local init_fn = function(use)
}
}
})
-- lspconfig.jedi_language_server.setup({capabilites=capabilites})
end
return require('packer').startup(init_fn)