fix(diagnostics): add vim.diagnostic.severity.INFO to diagnostics context (#1696)
This commit is contained in:
@@ -1005,10 +1005,14 @@ local severity = {
|
|||||||
function M.get_diagnostics(bufnr)
|
function M.get_diagnostics(bufnr)
|
||||||
if bufnr == nil then bufnr = api.nvim_get_current_buf() end
|
if bufnr == nil then bufnr = api.nvim_get_current_buf() end
|
||||||
local diagnositcs = ---@type vim.Diagnostic[]
|
local diagnositcs = ---@type vim.Diagnostic[]
|
||||||
vim.diagnostic.get(
|
vim.diagnostic.get(bufnr, {
|
||||||
bufnr,
|
severity = {
|
||||||
{ severity = { vim.diagnostic.severity.ERROR, vim.diagnostic.severity.WARN, vim.diagnostic.severity.HINT } }
|
vim.diagnostic.severity.ERROR,
|
||||||
)
|
vim.diagnostic.severity.WARN,
|
||||||
|
vim.diagnostic.severity.INFO,
|
||||||
|
vim.diagnostic.severity.HINT,
|
||||||
|
},
|
||||||
|
})
|
||||||
return vim
|
return vim
|
||||||
.iter(diagnositcs)
|
.iter(diagnositcs)
|
||||||
:map(function(diagnostic)
|
:map(function(diagnostic)
|
||||||
|
|||||||
Reference in New Issue
Block a user