mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
feat(kotlin): Replace current custom kotlin installation with LspInstall kotlin (#518)
This commit is contained in:
parent
b3cd29f863
commit
60175ee0d6
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue