ci: format

This commit is contained in:
Barrett Ruth 2026-03-05 12:03:50 -05:00
parent 59419e6003
commit 8c04cf19ea
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -119,14 +119,18 @@ end
---@return preview.Diagnostic[]
local function parse_mermaid(output)
local lnum = output:match('Parse error on line (%d+)')
if not lnum then return {} end
if not lnum then
return {}
end
local msg = output:match('(Expecting .+)') or 'parse error'
return { {
return {
{
lnum = tonumber(lnum) - 1,
col = 0,
message = msg,
severity = vim.diagnostic.severity.ERROR,
} }
},
}
end
---@type preview.ProviderConfig