fix(diagnostic): correct severity type on setqflist, setloclist (#30506)

fix(diagnostic): correct severity type on setqflist, setloclist
This commit is contained in:
Nathan Smith
2024-09-25 08:10:50 -07:00
committed by GitHub
parent 046e0956ee
commit 921dc22fc0
2 changed files with 4 additions and 4 deletions

View File

@@ -831,7 +831,7 @@ setloclist({opts}) *vim.diagnostic.setloclist()*
after setting. after setting.
• {title}? (`string`) Title of the location list. Defaults to • {title}? (`string`) Title of the location list. Defaults to
"Diagnostics". "Diagnostics".
• {severity}? (`vim.diagnostic.Severity`) See • {severity}? (`vim.diagnostic.SeverityFilter`) See
|diagnostic-severity|. |diagnostic-severity|.
setqflist({opts}) *vim.diagnostic.setqflist()* setqflist({opts}) *vim.diagnostic.setqflist()*
@@ -845,7 +845,7 @@ setqflist({opts}) *vim.diagnostic.setqflist()*
after setting. after setting.
• {title}? (`string`) Title of quickfix list. Defaults to • {title}? (`string`) Title of quickfix list. Defaults to
"Diagnostics". "Diagnostics".
• {severity}? (`vim.diagnostic.Severity`) See • {severity}? (`vim.diagnostic.SeverityFilter`) See
|diagnostic-severity|. |diagnostic-severity|.
*vim.diagnostic.show()* *vim.diagnostic.show()*

View File

@@ -2078,7 +2078,7 @@ end
--- @field title? string --- @field title? string
--- ---
--- See |diagnostic-severity|. --- See |diagnostic-severity|.
--- @field severity? vim.diagnostic.Severity --- @field severity? vim.diagnostic.SeverityFilter
--- Add all diagnostics to the quickfix list. --- Add all diagnostics to the quickfix list.
--- ---
@@ -2106,7 +2106,7 @@ end
--- @field title? string --- @field title? string
--- ---
--- See |diagnostic-severity|. --- See |diagnostic-severity|.
--- @field severity? vim.diagnostic.Severity --- @field severity? vim.diagnostic.SeverityFilter
--- Add buffer diagnostics to the location list. --- Add buffer diagnostics to the location list.
--- ---