diff options
author | Maria José Solano <majosolano99@gmail.com> | 2024-11-24 13:43:27 -0800 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-12-07 09:43:45 +0000 |
commit | c2bf09ddff4994f901350dd02412087a8abfde0a (patch) | |
tree | f75375a9e1e1d57800a005c916df9ebb27a7e54e /runtime/doc | |
parent | 9c278af7cc96e5b7f07cd9fdec27951651063a76 (diff) | |
download | rneovim-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.txt | 4 |
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 |