mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(docs): nil as viable argument for goto_prev (#20852)
Added `nil` as a possible option to `vim.diagnostics.goto_prev` in the docs
This commit is contained in:
@ -519,7 +519,7 @@ goto_prev({opts}) *vim.diagnostic.goto_prev()*
|
||||
Move to the previous diagnostic in the current buffer.
|
||||
|
||||
Parameters: ~
|
||||
• {opts} (table) See |vim.diagnostic.goto_next()|
|
||||
• {opts} (table|nil) See |vim.diagnostic.goto_next()|
|
||||
|
||||
hide({namespace}, {bufnr}) *vim.diagnostic.hide()*
|
||||
Hide currently displayed diagnostics.
|
||||
|
@ -797,7 +797,7 @@ function M.get_prev_pos(opts)
|
||||
end
|
||||
|
||||
--- Move to the previous diagnostic in the current buffer.
|
||||
---@param opts table See |vim.diagnostic.goto_next()|
|
||||
---@param opts table|nil See |vim.diagnostic.goto_next()|
|
||||
function M.goto_prev(opts)
|
||||
return diagnostic_move_pos(opts, M.get_prev_pos(opts))
|
||||
end
|
||||
|
Reference in New Issue
Block a user