From 0136bfa4b5e0df397efbe2d4e348a521f0986759 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 30 Sep 2023 17:50:41 +0200 Subject: [PATCH] style: format --- lua/lazyvim/plugins/lsp/format.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/lsp/format.lua b/lua/lazyvim/plugins/lsp/format.lua index 1ec548ae..72f18746 100644 --- a/lua/lazyvim/plugins/lsp/format.lua +++ b/lua/lazyvim/plugins/lsp/format.lua @@ -35,9 +35,12 @@ function M.format(opts) return end - if M.custom_format and Util.try(function() - return M.custom_format(buf) - end, { msg = "Custom formatter failed" }) then + if + M.custom_format + and Util.try(function() + return M.custom_format(buf) + end, { msg = "Custom formatter failed" }) + then return end