aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/buf_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/buf_ls.lua')
-rw-r--r--lsp/buf_ls.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp/buf_ls.lua b/lsp/buf_ls.lua
index 25f84969..5e621a22 100644
--- a/lsp/buf_ls.lua
+++ b/lsp/buf_ls.lua
@@ -10,4 +10,8 @@ return {
cmd = { 'buf', 'lsp', 'serve', '--timeout=0', '--log-format=text' },
filetypes = { 'proto' },
root_markers = { 'buf.yaml', '.git' },
+ reuse_client = function()
+ -- `buf lsp serve` is meant to be used with multiple workspaces.
+ return true
+ end,
}