mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
lsp: fix on_attach signature documentation (#13723)
* trim trailing whitespace from docs
This commit is contained in:
committed by
GitHub
parent
953a548454
commit
77a6049e07
@@ -639,8 +639,8 @@ client() *vim.lsp.client*
|
|||||||
automatically escalate and force shutdown.
|
automatically escalate and force shutdown.
|
||||||
• is_stopped() Checks whether a client is stopped. Returns:
|
• is_stopped() Checks whether a client is stopped. Returns:
|
||||||
true if the client is fully stopped.
|
true if the client is fully stopped.
|
||||||
• on_attach(bufnr) Runs the on_attach function from the
|
• on_attach(client, bufnr) Runs the on_attach function from the
|
||||||
client's config if it was defined.
|
client's config if it was defined. Useful for buffer-local setup.
|
||||||
|
|
||||||
• Members
|
• Members
|
||||||
• {id} (number): The id allocated to the client.
|
• {id} (number): The id allocated to the client.
|
||||||
@@ -1716,7 +1716,7 @@ make_workspace_params({added}, {removed})
|
|||||||
Create the workspace params
|
Create the workspace params
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{added}
|
{added}
|
||||||
{removed}
|
{removed}
|
||||||
|
|
||||||
*vim.lsp.util.open_floating_preview()*
|
*vim.lsp.util.open_floating_preview()*
|
||||||
|
|||||||
@@ -327,8 +327,9 @@ end
|
|||||||
--- Checks whether a client is stopped.
|
--- Checks whether a client is stopped.
|
||||||
--- Returns: true if the client is fully stopped.
|
--- Returns: true if the client is fully stopped.
|
||||||
---
|
---
|
||||||
--- - on_attach(bufnr)
|
--- - on_attach(client, bufnr)
|
||||||
--- Runs the on_attach function from the client's config if it was defined.
|
--- Runs the on_attach function from the client's config if it was defined.
|
||||||
|
--- Useful for buffer-local setup.
|
||||||
---
|
---
|
||||||
--- - Members
|
--- - Members
|
||||||
--- - {id} (number): The id allocated to the client.
|
--- - {id} (number): The id allocated to the client.
|
||||||
|
|||||||
Reference in New Issue
Block a user