Skip to content

Commit

Permalink
doc: Document actual LspStopServer behavior (#1490)
Browse files Browse the repository at this point in the history
Actual behavior was slightly different from the documented one.

Co-authored-by: mattn <mattn.jp@gmail.com>
  • Loading branch information
ilya-bobyr and mattn authored Aug 15, 2023
1 parent 42d223c commit 7dd6b72
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions doc/vim-lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1909,9 +1909,17 @@ Prints the status of all registered servers. Use `:verbose LspStatus` to
additionally show each server's workspace_config.
See also |vim-lsp-healthcheck|.

LspStopServer *:LspStopServer*
LspStopServer [name] *:LspStopServer*

Stop all active servers.
If 'name' is not specified, then all active servers that handle files matching
the current buffer type are stopped. This is often what you want. For
example, if you have multiple files of different types open, `LspStopServer`
will only stop the server for the current buffer.

When 'name' is provided, it acts as an additional restriction, only stopping
server that handles the current buffer type, if it also matches the specifie
name. 'name' value is compred to the 'name' property in the
|lsp#register_server()| call.

==============================================================================
Autocommands *vim-lsp-autocommands*
Expand Down

0 comments on commit 7dd6b72

Please sign in to comment.