aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index d53a7b4c11..bbf19f9569 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -745,6 +745,10 @@ client() *vim.lsp.client*
client is fully stopped.
• on_attach(client, bufnr) Runs the on_attach function from the client's
config if it was defined. Useful for buffer-local setup.
+ • supports_method(method, [opts]): boolean Checks if a client supports a
+ given method. Always returns true for unknown off-spec methods. [opts]
+ is a optional `{bufnr?: integer}` table. Some language server
+ capabilities can be file specific.
• Members
• {id} (number): The id allocated to the client.