aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-11-24 13:43:27 -0800
committerLewis Russell <me@lewisr.dev>2024-12-07 09:43:45 +0000
commitc2bf09ddff4994f901350dd02412087a8abfde0a (patch)
treef75375a9e1e1d57800a005c916df9ebb27a7e54e /runtime/doc
parent9c278af7cc96e5b7f07cd9fdec27951651063a76 (diff)
downloadrneovim-c2bf09ddff4994f901350dd02412087a8abfde0a.tar.gz
rneovim-c2bf09ddff4994f901350dd02412087a8abfde0a.tar.bz2
rneovim-c2bf09ddff4994f901350dd02412087a8abfde0a.zip
fix(lsp): check for configuration workspace folders when reusing clients
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 2654d7f14f..1607f3492c 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -872,7 +872,9 @@ start({config}, {opts}) *vim.lsp.start()*
(`fun(client: vim.lsp.Client, config: vim.lsp.ClientConfig): boolean`)
Predicate used to decide if a client should be re-used.
Used on all running clients. The default implementation
- re-uses a client if name and root_dir matches.
+ re-uses a client if it has the same name and if the given
+ workspace folders (or root_dir) are all included in the
+ client's workspace folders.
• {bufnr}? (`integer`) Buffer handle to attach to if
starting or re-using a client (0 for current).
• {attach}? (`boolean`) Whether to attach the client to a