From 1c878b9d06fb116135419d098fe5dfde5304b709 Mon Sep 17 00:00:00 2001 From: loqusion Date: Sat, 30 Sep 2023 10:48:19 -0500 Subject: [PATCH] fix(format): allow `custom_format` to return early (#1531) --- lua/lazyvim/plugins/lsp/format.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/lsp/format.lua b/lua/lazyvim/plugins/lsp/format.lua index 6eb78d0d..1ec548ae 100644 --- a/lua/lazyvim/plugins/lsp/format.lua +++ b/lua/lazyvim/plugins/lsp/format.lua @@ -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