aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua
blob: a8330fcaac4e5dfe6732496044963b84bed36af5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local server = require "nvim-lsp-installer.server"
local process = require "nvim-lsp-installer.process"
local path = require "nvim-lsp-installer.path"
local github = require "nvim-lsp-installer.core.managers.github"

return function(name, root_dir)
    return server.Server:new {
        name = name,
        root_dir = root_dir,
        homepage = "https://github.com/fwcd/kotlin-language-server",
        languages = { "kotlin" },
        async = true,
        installer = function()
            github.unzip_release_file({
                repo = "fwcd/kotlin-language-server",
                asset_file = "server.zip",
            }).with_receipt()
        end,
        default_options = {
            cmd_env = {
                PATH = process.extend_path {
                    path.concat {
                        root_dir,
                        "server",
                        "bin",
                    },
                },
            },
        },
    }
end