summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/pbls.lua
blob: d1fbe229a04c248820bc7a5d37d2feecf1f2a7c6 (plain)
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
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'pbls' },
    filetypes = { 'proto' },
    root_dir = util.root_pattern('.pbls.toml', '.git'),
  },
  docs = {
    description = [[
https://git.sr.ht/~rrc/pbls

Prerequisites: Ensure protoc is on your $PATH.

`pbls` can be installed via `cargo install`:
```sh
cargo install --git https://git.sr.ht/~rrc/pbls
```

pbls is a Language Server for protobuf
]],
    default_config = {
      root_dir = [[root_pattern(".pbls.toml", ".git")]],
    },
  },
}