mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-10-09 03:32:15 +00:00
feat(ui): highlight reverted breaking changes as a breaking change.
This commit is contained in:
parent
6c3bda4aca
commit
0efac749c3
2 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ function M:log(task)
|
||||||
for _, line in ipairs(lines) do
|
for _, line in ipairs(lines) do
|
||||||
local ref, msg, time = line:match("^(%w+) (.*) (%(.*%))$")
|
local ref, msg, time = line:match("^(%w+) (.*) (%(.*%))$")
|
||||||
if msg then
|
if msg then
|
||||||
if msg:find("^%S+!:") then
|
if msg:find("^%S+!:") or msg:find("^Revert \"%S+!:") then
|
||||||
self:diagnostic({ message = "Breaking Changes", severity = vim.diagnostic.severity.WARN })
|
self:diagnostic({ message = "Breaking Changes", severity = vim.diagnostic.severity.WARN })
|
||||||
end
|
end
|
||||||
self:append(ref:sub(1, 7) .. " ", "LazyCommit", { indent = 6 })
|
self:append(ref:sub(1, 7) .. " ", "LazyCommit", { indent = 6 })
|
||||||
|
|
|
@ -46,7 +46,7 @@ return {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
for _, line in ipairs(vim.split(task:output(), "\n")) do
|
for _, line in ipairs(vim.split(task:output(), "\n")) do
|
||||||
if line:find("^%w+ %S+!:") then
|
if line:find("^%w+ %S+!:") or line:find("^%w+ Revert \"%S+!:")then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue