File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1909,9 +1909,17 @@ Prints the status of all registered servers. Use `:verbose LspStatus` to
1909
1909
additionally show each server's workspace_config.
1910
1910
See also | vim-lsp-healthcheck | .
1911
1911
1912
- LspStopServer *:LspStopServer*
1912
+ LspStopServer [name] *:LspStopServer*
1913
1913
1914
- Stop all active servers.
1914
+ If 'name' is not specified, then all active servers that handle files matching
1915
+ the current buffer type are stopped. This is often what you want. For
1916
+ example, if you have multiple files of different types open, `LspStopServer`
1917
+ will only stop the server for the current buffer.
1918
+
1919
+ When 'name' is provided, it acts as an additional restriction, only stopping
1920
+ server that handles the current buffer type, if it also matches the specifie
1921
+ name. 'name' value is compred to the 'name' property in the
1922
+ | lsp#register_server() | call.
1915
1923
1916
1924
==============================================================================
1917
1925
Autocommands *vim-lsp-autocommands*
You can’t perform that action at this time.
0 commit comments