diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-12-16 14:22:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-16 14:22:41 -0500 |
| commit | 9a5f74d66bf45ac3c75a7757e146e158265814ce (patch) | |
| tree | 5ecb7b7a8aba31de03d52c9842a6b790971850f2 | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar.gz nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar.bz2 nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar.lz nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar.xz nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.tar.zst nvim-lspconfig-9a5f74d66bf45ac3c75a7757e146e158265814ce.zip | |
docs: ":lsp ..." in Nvim 0.12 #4243
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | doc/lspconfig.txt | 9 |
2 files changed, 12 insertions, 3 deletions
@@ -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 |
