aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lspconfig.txt
diff options
context:
space:
mode:
authorGuilherme Soares <48023091+guilhas07@users.noreply.github.com>2024-11-17 18:02:16 +0000
committerGitHub <noreply@github.com>2024-11-17 10:02:16 -0800
commitf012c1b176f0e3c71f40eb309bdec0316689462e (patch)
tree760dbe70f58b808dcac32bfebc7151ecf73e24ae /doc/lspconfig.txt
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar.gz
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar.bz2
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar.lz
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar.xz
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.tar.zst
nvim-lspconfig-f012c1b176f0e3c71f40eb309bdec0316689462e.zip
feat: accept multiple clients/configs in LspRestart, LspStop #3438
## Problems: - `:LspStop` doesn't support list of client ids or config names. - `:LspRestart` doesn't support config names although supports list of client ids - Command completion uses ids and names, not allowing the user to hit enter immediately after finding the desired server ## Solution: - Unify `LspStop` and `LspRestart` implementation supporting lists of client ids and config names - Command completion only returns config names - Modify docs
Diffstat (limited to 'doc/lspconfig.txt')
-rw-r--r--doc/lspconfig.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt
index 4fb5fd19..db94a710 100644
--- a/doc/lspconfig.txt
+++ b/doc/lspconfig.txt
@@ -382,14 +382,15 @@ Launches the requested (configured) client, but only if it successfully
resolves a root directory. Note: Defaults to all configured servers matching
the current buffer filetype.
-:LspStop [client_id] or [config_name] *:LspStop*
-Stops the server with the given client-id or config name. Defaults to stopping
-all servers active on the current buffer. To force stop a language server: >
- :LspStop <client_id> ++force
+:LspStop [client_id] or [config_name] ... *:LspStop*
+Stops the servers with the given client-ids or config names. Defaults to
+stopping all servers active on the current buffer. To force stop language
+servers: >
+ :LspStop ++force
-:LspRestart [client_id] *:LspRestart*
-Restarts the client with the given client id, and attempts to reattach to all
-previously attached buffers.
+:LspRestart [client_id] or [config_name] ... *:LspRestart*
+Restarts the clients with the given client-ids or config names, and attempts
+to reattach to all previously attached buffers.
==============================================================================
COMPLETION SUPPORT *lspconfig-completion*