aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorOlivia Kinnear <account@superatomic.dev>2025-10-23 09:01:08 -0500
committerGitHub <noreply@github.com>2025-10-23 07:01:08 -0700
commit0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5 (patch)
treea3180c11afac302b475fd332a9ff2c850809390f /README.md
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar.gz
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar.bz2
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar.lz
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar.xz
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.tar.zst
nvim-lspconfig-0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5.zip
feat: force-stop server with :LspStop! (bang) #4140
Problem: Some servers don't stop properly. Calling `:LspStop` _twice_ will induce a force-stop, but that is not easy to discover: https://github.com/neovim/neovim/blob/b67eff38fe19876ab228007897224ec04b58aa40/runtime/lua/vim/lsp/client.lua#L864-L866 > By default, it will just request the server to shutdown without force. If > you request to stop a client which has previously been requested to > shutdown, it will automatically escalate and force shutdown. Solution: Nvim should automatically force-stop after X seconds, but until that is supported, adding a bang "!" variant is reasonable.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index ad41c4e6..354327da 100644
--- a/README.md
+++ b/README.md
@@ -161,7 +161,7 @@ Most of the time, the reason for failure is present in the logs.
* `: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.
+* `: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.
## Contributions