aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua
blob: 2e8c084144115c31d9174d4920be3ed9c52bc697 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local server = require("nvim-lsp-installer.server")
local path = require("nvim-lsp-installer.path")
local shell = require("nvim-lsp-installer.installers.shell")

local root_dir = server.get_server_root_path("kotlin")

return server.Server:new {
    name = "kotlin_language_server",
    root_dir = root_dir,
    installer = shell.raw [[
    curl -fLO https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip;
    unzip server.zip;
    rm server.zip;
    ]],
    default_options = {
        cmd = { path.concat { root_dir, "server", "bin", "kotlin-language-server" } },
    },
}