aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/protols.lua
blob: 87b221067bc3e8fa05300b79c03fe4fd59ef626a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
return {
  default_config = {
    cmd = { 'protols' },
    filetypes = { 'proto' },
    single_file_support = true,
    root_dir = function(fname)
      return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
    end,
  },
  docs = {
    description = [[
https://github.com/coder3101/protols

`protols` can be installed via `cargo`:
```sh
cargo install protols
```

A Language Server for proto3 files. It uses tree-sitter and runs in single file mode.
]],
  },
}