aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/dotls.lua
blob: 90ddde7eaea9f3a2a95b3d81e6b3c44c57361fa9 (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 configs = require "lspconfig/configs"
local util = require "lspconfig/util"

local server_name = "dotls"
local bin_name = "dot-language-server"

local root_files = {
  ".git",
}

configs[server_name] = {
  default_config = {
    cmd = { bin_name, "--stdio" },
    filetypes = { "dot" },
    root_dir = function(filename)
      return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
    end,
  },
  docs = {
    description = [[
https://github.com/nikeee/dot-language-server

`dot-language-server` can be installed via `npm`:
```sh
npm install -g dot-language-server
```
    ]],
  },
}

-- vim:et ts=2 sw=2