aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/dotls.lua
blob: be1e86f37f0630d72413fa88e72ca679c5a2ea37 (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
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 = util.root_pattern(unpack(root_files)),
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/nikeee/dot-language-server

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