aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/dotls.lua
blob: c0f044001fee4d6ef4bc95cbf0b8318c889e3b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
return {
  default_config = {
    cmd = { 'dot-language-server', '--stdio' },
    filetypes = { 'dot' },
    root_dir = function(fname)
      return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
    end,
    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
```
    ]],
  },
}