Post

HN
Hacker News

Protobuf has LSP support. You're welcome

Ranked #3 on Hacker News with 39 points and 16 comments.

Buf is proud to announce the first fully-featured, production-grade LSP server for Protobuf.

The Language Server Protocol is the standard API for integrating language support into your favorite IDE or text editor, such as VSCode, IntelliJ, or Neovim. An LSP server provides the smarts that power go to definition, code completion, finding references, and semantics-aware syntax highlighting.

Before today, Protobuf lacked the same LSP support other major programming languages enjoy. We donโ€™t want to overstate our own work, but this is a game-changer for Protobuf development : Protobuf now has modern IDE support for the first time, all powered by the Buf CLI .

At Buf, we believe that Protobuf is the best schema language, thanks to its established ecosystem of libraries and tools. Protobuf shouldnโ€™t just be the smart choice; it should be the easiest choice too. This is why weโ€™re releasing the Buf LSP server, as part of our family of tools that complete the Protobuf ecosystem, including Protobuf-ES (used in Chromium!), Protovalidate , ConnectRPC , and the Buf Schema Registry . No matter your project or use-case, developing with Protobuf should be the easy, obvious choice.

VSCode is one of the most popular graphical editors available, and it has stellar LSP support (LSP originated with VSCode). To use the Buf LSP, just install the Buf extension . This will automatically use your installed version of the Buf CLI (which bundles the LSP server), or install one if you need it.

Neovim is Buf engineersโ€™ favorite editor, and the Buf LSP works great with it, too. All you need to do is install the Buf CLI, and configure Neovim to use it as an LSP server.