mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 09:44:07 +00:00
fix(types): add missing @return annotations
This commit is contained in:
committed by
Lewis Russell
parent
1f0dbfea2f
commit
9988d7142d
@@ -1485,7 +1485,7 @@ end
|
||||
---@param bufnr? integer Buffer number to get diagnostics from. Use 0 for
|
||||
--- current buffer or nil for all buffers.
|
||||
---@param opts? vim.diagnostic.GetOpts
|
||||
---@return table : Table with actually present severity values as keys
|
||||
---@return table<integer, integer> : Table with actually present severity values as keys
|
||||
--- (see |diagnostic-severity|) and integer counts as values.
|
||||
function M.count(bufnr, opts)
|
||||
vim.validate('bufnr', bufnr, 'number', true)
|
||||
|
||||
@@ -1191,6 +1191,7 @@ end
|
||||
--- Note: Some language server capabilities can be file specific.
|
||||
--- @param method vim.lsp.protocol.Method.ClientToServer | vim.lsp.protocol.Method.Registration
|
||||
--- @param bufnr? integer
|
||||
--- @return boolean
|
||||
function Client:supports_method(method, bufnr)
|
||||
-- Deprecated form
|
||||
if type(bufnr) == 'table' then
|
||||
|
||||
Reference in New Issue
Block a user