diff options
| author | Edward McFarlane <3036610+emcfarlane@users.noreply.github.com> | 2025-11-12 17:53:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-12 08:53:11 -0800 |
| commit | b40e538a3c230e60e44a9149339cab581aa7eb0f (patch) | |
| tree | a942d704b76a56faa0be777bc132176073ca7aaf /lsp | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar.gz nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar.bz2 nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar.lz nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar.xz nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.tar.zst nvim-lspconfig-b40e538a3c230e60e44a9149339cab581aa7eb0f.zip | |
fix(buf_ls): reuse client across workspaces #4179
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/buf_ls.lua | 4 |
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, } |
