aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-12 13:47:34 -0800
committerGitHub <noreply@github.com>2021-01-12 22:47:34 +0100
commit77a6049e07d070470d3274348ac61ab9b96cac6f (patch)
treeb607af1c867778af618988ba988403dcef4a2212 /runtime/doc
parent953a548454869b8d4d513211fd15c429b4759eae (diff)
downloadrneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.tar.gz
rneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.tar.bz2
rneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.zip
lsp: fix on_attach signature documentation (#13723)
* trim trailing whitespace from docs
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index b9affb02b2..193593be13 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -639,8 +639,8 @@ client() *vim.lsp.client*
automatically escalate and force shutdown.
• is_stopped() Checks whether a client is stopped. Returns:
true if the client is fully stopped.
- • on_attach(bufnr) Runs the on_attach function from the
- client's config if it was defined.
+ • on_attach(client, bufnr) Runs the on_attach function from the
+ client's config if it was defined. Useful for buffer-local setup.
• Members
• {id} (number): The id allocated to the client.
@@ -1716,7 +1716,7 @@ make_workspace_params({added}, {removed})
Create the workspace params
Parameters: ~
- {added}
+ {added}
{removed}
*vim.lsp.util.open_floating_preview()*