mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(lsp): add supports_method to vim.lsp.client docs (#26852)
This commit is contained in:
parent
5dc0bdfe98
commit
91d76ac941
@ -745,6 +745,10 @@ client() *vim.lsp.client*
|
|||||||
client is fully stopped.
|
client is fully stopped.
|
||||||
• on_attach(client, bufnr) Runs the on_attach function from the client's
|
• on_attach(client, bufnr) Runs the on_attach function from the client's
|
||||||
config if it was defined. Useful for buffer-local setup.
|
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
|
• Members
|
||||||
• {id} (number): The id allocated to the client.
|
• {id} (number): The id allocated to the client.
|
||||||
|
@ -425,6 +425,12 @@ end
|
|||||||
--- 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.
|
--- 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
|
--- - Members
|
||||||
--- - {id} (number): The id allocated to the client.
|
--- - {id} (number): The id allocated to the client.
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user