feat(java): Replace the current custom installation of java, with lspinstall (#517)

This commit is contained in:
Marek Filipowicz 2021-06-26 19:15:02 +02:00 committed by GitHub
parent 19003f7577
commit a9e9047118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 27 deletions

View file

@ -5,15 +5,15 @@ require'lspconfig/configs'.jdtls = nil -- important, unset the loaded config aga
-- config.default_config.cmd[1] = "./node_modules/.bin/bash-language-server"
-- 2. extend the config with an install_script and (optionally) uninstall_script
require'lspinstall/servers'.jdtls = vim.tbl_extend('error', config, {
-- lspinstall will automatically create/delete the install directory for every server
install_script = [[
git clone https://github.com/eclipse/eclipse.jdt.ls.git
cd eclipse.jdt.ls
./mvnw clean verify
]],
uninstall_script = nil -- can be omitted
})
-- require'lspinstall/servers'.jdtls = vim.tbl_extend('error', config, {
-- -- lspinstall will automatically create/delete the install directory for every server
-- install_script = [[
-- git clone https://github.com/eclipse/eclipse.jdt.ls.git
-- cd eclipse.jdt.ls
-- ./mvnw clean verify
-- ]],
-- uninstall_script = nil -- can be omitted
-- })
require'lspinstall/servers'.kotlin = vim.tbl_extend('error', config, {
install_script = [[