mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 10:48:45 +02:00
feat(format): show warning when no formatter ran when using the format keymap
This commit is contained in:
parent
0b04e3908c
commit
e36f7d811c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue