From 9ea0e83a547017b8d88292d9cbbfae6c01c108c1 Mon Sep 17 00:00:00 2001 From: Varsh Date: Tue, 14 May 2024 16:01:24 +0530 Subject: feat: add pbls(Protobuf Language Server) (#3148) * feat: add pbls(Protobuf Language Server) * fix(pbls): remove find_git_ancestor from root_dir --- lua/lspconfig/server_configurations/pbls.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/lspconfig/server_configurations/pbls.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2