blob: 2a7ec34f3ded5e019f8da4e0089084826c4b8306 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
local server = require "nvim-lsp-installer.server"
local platform = require "nvim-lsp-installer.platform"
local path = require "nvim-lsp-installer.path"
local std = require "nvim-lsp-installer.installers.std"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
installer = std.unzip_remote "https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip",
default_options = {
cmd = {
path.concat {
root_dir,
"server",
"bin",
platform.is_win and "kotlin-language-server.bat" or "kotlin-language-server",
},
},
},
}
end
|