aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/kotlin_language_server.lua
blob: 373c782ced957fb033d326932a3afa5d0e3b874d (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- default config for gradle-projects of the
--- kotlin-language-server: https://github.com/fwcd/kotlin-language-server
---
--- This server requires vim to be aware of the kotlin-filetype.
--- You could refer for this capability to:
--- 	https://github.com/udalov/kotlin-vim (recommended)
--- 	Note that there is no LICENSE specified yet.

local util = require 'lspconfig/util'
local configs = require 'lspconfig/configs'

configs.kotlin_language_server = {
  default_config = {
    filetypes = { "kotlin" };
    root_dir = util.root_pattern("settings.gradle");
  };
  docs = {
    package_json = "https://raw.githubusercontent.com/fwcd/vscode-kotlin/master/package.json";
    description = [[
    A kotlin language server which was developed for internal usage and
    released afterwards. Maintaining is not done by the original author,
    but by fwcd.

    It is builded via gradle and developed on github.
    Source and additional description:
    https://github.com/fwcd/kotlin-language-server
    ]];
    default_config = {
      root_dir = [[root_pattern("settings.gradle")]];
      capabilities = [[
      smart code completion,
      diagnostics,
      hover,
      document symbols,
      definition lookup,
      method signature help,
      dependency resolution,
      additional plugins from: https://github.com/fwcd

      Snipped of License (refer to source for full License):

      The MIT License (MIT)

      Copyright (c) 2016 George Fraser
      Copyright (c) 2018 fwcd

      ]];
    };
  };
}

-- vim:et ts=2 sw=2