diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2024-10-24 16:47:41 +0100 |
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2024-10-29 09:06:05 +0000 |
| commit | 8260e4860b27a54a061bd8e2a9da23069993953a (patch) | |
| tree | 0fdf62a8755a54c40e191dba3d629cb5e8c21ecb /runtime/lua/vim/lsp.lua | |
| parent | 1471dfc85964a9d95c216619d715bfe449d97c19 (diff) | |
| download | rneovim-8260e4860b27a54a061bd8e2a9da23069993953a.tar.gz rneovim-8260e4860b27a54a061bd8e2a9da23069993953a.tar.bz2 rneovim-8260e4860b27a54a061bd8e2a9da23069993953a.zip | |
feat(lsp)!: multiple client support for vim.lsp.buf.hover()
Deprecate `vim.lsp.handlers.hover` and `vim.lsp.handlers['textDocument/hover']`
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
| -rw-r--r-- | runtime/lua/vim/lsp.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 4065785c5a..685dcae851 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -915,7 +915,9 @@ end --- ---@param bufnr (integer) Buffer handle, or 0 for current. ---@param method (string) LSP method name ----@param params? table|(fun(client: vim.lsp.Client, bufnr: integer): table?) Parameters to send to the server +---@param params? table|(fun(client: vim.lsp.Client, bufnr: integer): table?) Parameters to send to the server. +--- Can also be passed as a function that returns the params table for cases where +--- parameters are specific to the client. ---@param handler lsp.MultiHandler (function) --- Handler called after all requests are completed. Server results are passed as --- a `client_id:result` map. |