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

This commit is contained in:
Folke Lemaitre committed 2023-10-11 14:56:54 +02:00
1 parent b5495eb38a
commit 704e85183b
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ function M.info(buf)
end
end
if not have then
lines = { "\nNo formatters available for this buffer" }
lines[#lines+1] = "\n***No formatters available for this buffer.***"
end
Util[enabled and "info" or "warn"](
table.concat(lines, "\n"),