diff --git a/lua/modules/configs/completion/formatting.lua b/lua/modules/configs/completion/formatting.lua index 12fecd836..22f481633 100644 --- a/lua/modules/configs/completion/formatting.lua +++ b/lua/modules/configs/completion/formatting.lua @@ -159,7 +159,10 @@ function M.format(opts) return end - if format_modifications_only then + if + format_modifications_only + and require("lsp-format-modifications").format_modifications(client, bufnr).success + then if require("lsp-format-modifications").format_modifications(client, bufnr).success then if format_notify then vim.notify(