fix(format): always show formatter status even when no sources available

This commit is contained in:
Folke Lemaitre 2023-10-11 09:51:12 +02:00
parent c33e7489ec
commit a4abbdc89b

View file

@ -67,7 +67,7 @@ function M.info(buf)
end end
end end
if not have then if not have then
lines = { "\nNo formatters available for this buffer" } lines[#lines+1] = "\n***No formatters available for this buffer.***"
end end
Util[enabled and "info" or "warn"]( Util[enabled and "info" or "warn"](
table.concat(lines, "\n"), table.concat(lines, "\n"),