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, 2 insertions, 2 deletions
diff --git a/lsp/buf_ls.lua b/lsp/buf_ls.lua
index 5e621a22..379aaa7e 100644
--- a/lsp/buf_ls.lua
+++ b/lsp/buf_ls.lua
@@ -10,8 +10,8 @@ return {
cmd = { 'buf', 'lsp', 'serve', '--timeout=0', '--log-format=text' },
filetypes = { 'proto' },
root_markers = { 'buf.yaml', '.git' },
- reuse_client = function()
+ reuse_client = function(client, config)
-- `buf lsp serve` is meant to be used with multiple workspaces.
- return true
+ return client.name == config.name
end,
}