aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/dotls.lua
blob: 0aa198e41f318b4e79a5b58e5af07c18f8c0ad1c (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
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