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:
Martin Kunz
2022-10-29 01:13:27 +02:00
committed by GitHub
parent 49e32cbdf8
commit 356244d50b
2 changed files with 2 additions and 2 deletions

View File

@@ -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