From 8cb0d869e6f5f0558504aa203033c5ba5131af3a Mon Sep 17 00:00:00 2001 From: Dmitriy Sokolov Date: Thu, 27 Feb 2025 01:30:26 +0200 Subject: [PATCH] feat(lsp): add protobuf language servers (#12936) --- book/src/generated/lang-support.md | 2 +- languages.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 833196b6b..5688a39cd 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -175,7 +175,7 @@ | powershell | ✓ | | | | | prisma | ✓ | ✓ | | `prisma-language-server` | | prolog | | | | `swipl` | -| protobuf | ✓ | ✓ | ✓ | `bufls`, `pb` | +| protobuf | ✓ | ✓ | ✓ | `buf`, `pb`, `protols` | | prql | ✓ | | | | | purescript | ✓ | ✓ | | `purescript-language-server` | | python | ✓ | ✓ | ✓ | `ruff`, `jedi-language-server`, `pylsp` | diff --git a/languages.toml b/languages.toml index 321f1864b..259951d99 100644 --- a/languages.toml +++ b/languages.toml @@ -16,7 +16,7 @@ bass = { command = "bass", args = ["--lsp"] } beancount-language-server = { command = "beancount-language-server" } bicep-langserver = { command = "bicep-langserver" } bitbake-language-server = { command = "bitbake-language-server" } -bufls = { command = "bufls", args = ["serve"] } +buf = { command = "buf", args = ["beta", "lsp", "--timeout", "0"] } cairo-language-server = { command = "cairo-language-server", args = [] } circom-lsp = { command = "circom-lsp" } cl-lsp = { command = "cl-lsp" } @@ -87,6 +87,7 @@ prisma-language-server = { command = "prisma-language-server", args = ["--stdio" purescript-language-server = { command = "purescript-language-server", args = ["--stdio"] } pylsp = { command = "pylsp" } pyright = { command = "pyright-langserver", args = ["--stdio"], config = {} } +protols = { command = "protols", args = [] } basedpyright = { command = "basedpyright-langserver", args = ["--stdio"], config = {} } pylyzer = { command = "pylyzer", args = ["--server"] } qmlls = { command = "qmlls" } @@ -348,7 +349,7 @@ name = "protobuf" scope = "source.proto" injection-regex = "proto" file-types = ["proto"] -language-servers = [ "bufls", "pbkit" ] +language-servers = [ "buf", "pbkit", "protols" ] comment-token = "//" block-comment-tokens = { start = "/*", end = "*/" } indent = { tab-width = 2, unit = " " }