aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--doc/lspconfig.txt9
2 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index d6d8841a..b1da3af4 100644
--- a/README.md
+++ b/README.md
@@ -166,9 +166,9 @@ Most of the time, the reason for failure is present in the logs.
## Commands
* `:LspInfo` (alias to `:checkhealth vim.lsp`) shows the status of active and configured language servers.
-* `:LspStart <config_name>` Start the requested server name. Will only successfully start if the command detects a root directory matching the current config.
-* `:LspStop [<client_id_or_name>]` Stops the given server. Defaults to stopping all servers active on the current buffer. To force stop use `:LspStop!`
-* `:LspRestart [<client_id_or_name>]` Restarts the given client, and attempts to reattach to all previously attached buffers. Defaults to restarting all active servers.
+* `:lsp enable <config_name>` (`:LspStart <config_name>` for Nvim 0.11 or older) Start the requested server name. Will only successfully start if the command detects a root directory matching the current config.
+* `:lsp disable <client_id_or_name>` (`:LspStop [<client_id_or_name>]` for Nvim 0.11 or older) Stops the given server. Defaults to stopping all servers active on the current buffer. To force stop use `:LspStop!`
+* `:lsp restart <client_id_or_name>` (`:LspRestart [<client_id_or_name>]` for Nvim 0.11 or older) Restarts the given client, and attempts to reattach to all previously attached buffers. Defaults to restarting all active servers.
## Contributions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt
index ce0181e1..3fd42dc2 100644
--- a/doc/lspconfig.txt
+++ b/doc/lspconfig.txt
@@ -81,17 +81,26 @@ Alias to `:checkhealth vim.lsp`. Shows the status of active LSP clients and
servers.
:LspStart [config_name] *:LspStart*
+
+Note: Use `:lsp enable` with Nvim 0.12+. |:lsp-enable|
+
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*
+
+Note: Use `:lsp disable` with Nvim 0.12+. |:lsp-disable|
+
Stops the server with the given client-id or config name. Defaults to
stopping all servers active on the current buffer. To force stop language
servers: >vim
:LspStop!
:LspRestart [client_id] or [config_name] *:LspRestart*
+
+Note: Use `:lsp restart` with Nvim 0.12+. |:lsp-restart|
+
Restarts the client with the given client-id or config name, and attempts
to reattach to all previously attached buffers. Defaults to restarting all
active servers. To force stop language servers when restarting: >vim