docs(diagnostic): mention severity in Opts.VirtualLines (#33293)

Problem: `severity` field is recognized by
  `vim.diagnostic.Opts.VirtualLines`, but it is not explicitly
  documented.

Solution: document it.
This commit is contained in:
Evgeni Chasnovski
2025-04-03 18:19:37 +03:00
committed by GitHub
parent eae2d3b145
commit 71e133e5e6
2 changed files with 10 additions and 3 deletions

View File

@ -241,6 +241,10 @@ end
--- @class vim.diagnostic.Opts.VirtualLines
---
--- Only show virtual lines for diagnostics matching the given
--- severity |diagnostic-severity|
--- @field severity? vim.diagnostic.SeverityFilter
---
--- Only show diagnostics for the current line.
--- (default: `false`)
--- @field current_line? boolean
@ -252,7 +256,7 @@ end
--- @class vim.diagnostic.Opts.Signs
---
--- Only show virtual text for diagnostics matching the given
--- Only show signs for diagnostics matching the given
--- severity |diagnostic-severity|
--- @field severity? vim.diagnostic.SeverityFilter
---