mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
fix(format): allow custom_format
to return early (#1531)
This commit is contained in:
parent
6f9adbd4fb
commit
1c878b9d06
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function M.format(opts)
|
|||
end
|
||||
|
||||
if M.custom_format and Util.try(function()
|
||||
M.custom_format(buf)
|
||||
return M.custom_format(buf)
|
||||
end, { msg = "Custom formatter failed" }) then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue