feat(format): show warning when no formatter ran when using the format keymap

This commit is contained in:
Folke Lemaitre committed 2023-10-01 23:30:56 +02:00
1 parent 0b04e3908c
commit e36f7d811c
1 file changed
+3
+3
View File
@@ -50,6 +50,9 @@ function M.format(opts)
end, formatters.active)
if #client_ids == 0 then
if opts and opts.force then
Util.warn("No formatter available", { title = "LazyVim" })
end
return
end