mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(lsp): mark server_ready function as deprecated (#23520)
This commit is contained in:
parent
6a273af105
commit
512a90520e
@ -1299,13 +1299,6 @@ rename({new_name}, {options}) *vim.lsp.buf.rename()*
|
|||||||
• name (string|nil): Restrict clients used for rename to
|
• name (string|nil): Restrict clients used for rename to
|
||||||
ones where client.name matches this field.
|
ones where client.name matches this field.
|
||||||
|
|
||||||
server_ready() *vim.lsp.buf.server_ready()*
|
|
||||||
Checks whether the language servers attached to the current buffer are
|
|
||||||
ready.
|
|
||||||
|
|
||||||
Return: ~
|
|
||||||
`true` if server responds.
|
|
||||||
|
|
||||||
signature_help() *vim.lsp.buf.signature_help()*
|
signature_help() *vim.lsp.buf.signature_help()*
|
||||||
Displays signature information about the symbol under the cursor in a
|
Displays signature information about the symbol under the cursor in a
|
||||||
floating window.
|
floating window.
|
||||||
|
@ -31,7 +31,9 @@ end
|
|||||||
--- ready.
|
--- ready.
|
||||||
---
|
---
|
||||||
---@returns `true` if server responds.
|
---@returns `true` if server responds.
|
||||||
|
---@deprecated
|
||||||
function M.server_ready()
|
function M.server_ready()
|
||||||
|
vim.deprecate('vim.lsp.buf.server_ready', nil, '0.10.0')
|
||||||
return not not vim.lsp.buf_notify(0, 'window/progress', {})
|
return not not vim.lsp.buf_notify(0, 'window/progress', {})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user