diff options
| author | Olivia Kinnear <account@superatomic.dev> | 2025-10-23 09:01:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 07:01:08 -0700 |
| commit | 0d90bb9bfb8e8b6b64f4a19b7dd3619f5d2788b5 (patch) | |
| tree | a3180c11afac302b475fd332a9ff2c850809390f /doc/lspconfig.txt | |
| parent | docs: update configs.md (diff) | |
| download | nvim-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 'doc/lspconfig.txt')
| -rw-r--r-- | doc/lspconfig.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index fab073b6..ce0181e1 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -87,12 +87,15 @@ 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. +stopping all servers active on the current buffer. To force stop language +servers: >vim + :LspStop! :LspRestart [client_id] or [config_name] *:LspRestart* 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. +active servers. To force stop language servers when restarting: >vim + :LspRestart! ============================================================================== SERVER CONFIGS *lspconfig-configurations* |
