blob: 379aaa7eb951a3371a980db2032fe736a95d06e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- @brief
--- https://github.com/bufbuild/buf
---
--- buf beta lsp included in the cli itself
---
--- buf beta lsp is a Protobuf language server compatible with Buf modules and workspaces
---@type vim.lsp.Config
return {
cmd = { 'buf', 'lsp', 'serve', '--timeout=0', '--log-format=text' },
filetypes = { 'proto' },
root_markers = { 'buf.yaml', '.git' },
reuse_client = function(client, config)
-- `buf lsp serve` is meant to be used with multiple workspaces.
return client.name == config.name
end,
}
|