diff options
| author | Varsh <mailvarbhat@gmail.com> | 2024-05-14 16:01:24 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 18:31:24 +0800 |
| commit | 9ea0e83a547017b8d88292d9cbbfae6c01c108c1 (patch) | |
| tree | 78745c65c99fefbc3575481d500514a08ec05391 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar.gz nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar.bz2 nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar.lz nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar.xz nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.tar.zst nvim-lspconfig-9ea0e83a547017b8d88292d9cbbfae6c01c108c1.zip | |
feat: add pbls(Protobuf Language Server) (#3148)
* feat: add pbls(Protobuf Language Server)
* fix(pbls): remove find_git_ancestor from root_dir
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/pbls.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/pbls.lua b/lua/lspconfig/server_configurations/pbls.lua new file mode 100644 index 00000000..d1fbe229 --- /dev/null +++ b/lua/lspconfig/server_configurations/pbls.lua @@ -0,0 +1,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")]], + }, + }, +} |
