feat(kotlin): Replace current custom kotlin installation with LspInstall kotlin (#518)

This commit is contained in:
Marek Filipowicz 2021-06-26 20:25:20 +02:00 committed by GitHub
parent b3cd29f863
commit 60175ee0d6
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -8,7 +8,7 @@
local util = require 'lspconfig/util'
local bin_name = DATA_PATH .. "/lspinstall/kotlin/language-server/server/build/install/server/bin/kotlin-language-server"
local bin_name = DATA_PATH .. "/lspinstall/kotlin/server/bin/kotlin-language-server"
if vim.fn.has('win32') == 1 then
bin_name = bin_name..".bat"
end

View file

@ -15,13 +15,13 @@ require'lspconfig/configs'.jdtls = nil -- important, unset the loaded config aga
-- uninstall_script = nil -- can be omitted
-- })
require'lspinstall/servers'.kotlin = vim.tbl_extend('error', config, {
install_script = [[
git clone https://github.com/fwcd/kotlin-language-server.git language-server
cd language-server
./gradlew :server:installDist
]],
uninstall_script = nil -- can be omitted
})
-- require'lspinstall/servers'.kotlin = vim.tbl_extend('error', config, {
-- install_script = [[
-- git clone https://github.com/fwcd/kotlin-language-server.git language-server
-- cd language-server
-- ./gradlew :server:installDist
-- ]],
-- uninstall_script = nil -- can be omitted
-- })
require'lspinstall'.setup()