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

This commit is contained in:
Folke Lemaitre
2023-10-01 23:30:56 +02:00
parent 0b04e3908c
commit e36f7d811c

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