Skip to content

Commit

Permalink
fix(type): allow nil severity field in diagnostic.GotoOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhas07 committed Apr 23, 2024
1 parent a4fc3bb commit d3f387c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/doc/diagnostic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Lua module: vim.diagnostic *diagnostic-api*
|nvim_win_get_cursor()|.
{wrap}? (`boolean`, default: `true`) Whether to loop
around file or not. Similar to 'wrapscan'.
{severity} (`vim.diagnostic.Severity`) See
{severity}? (`vim.diagnostic.Severity`) See
|diagnostic-severity|.
{float}? (`boolean|vim.diagnostic.Opts.Float`, default:
`true`) If `true`, call
Expand Down
2 changes: 1 addition & 1 deletion runtime/lua/vim/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ end
--- @field wrap? boolean
---
--- See |diagnostic-severity|.
--- @field severity vim.diagnostic.Severity
--- @field severity? vim.diagnostic.Severity
---
--- If `true`, call |vim.diagnostic.open_float()| after moving.
--- If a table, pass the table as the {opts} parameter to |vim.diagnostic.open_float()|.
Expand Down

0 comments on commit d3f387c

Please sign in to comment.