Skip to content

Commit

Permalink
feat: add pbls(Protobuf Language Server)
Browse files Browse the repository at this point in the history
  • Loading branch information
varbhat committed May 14, 2024
1 parent 94513a5 commit 609e0e2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lua/lspconfig/server_configurations/pbls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local util = require 'lspconfig.util'

local root_files = {
'.pbls.toml',
}

return {
default_config = {
cmd = { 'pbls' },
filetypes = { 'proto' },
root_dir = util.root_pattern(unpack(root_files)) or util.find_git_ancestor(),
},
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")]],
},
},
}

0 comments on commit 609e0e2

Please sign in to comment.