Skip to content

Commit

Permalink
fixup: merge judgements.
Browse files Browse the repository at this point in the history
Co-authored-by: jint_lzxy_ <[email protected]>
Signed-off-by: Mohu <[email protected]>
  • Loading branch information
ayamir and Jint-lzxy authored Jun 30, 2024
1 parent 1c12b1b commit 7918ffe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/modules/configs/completion/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7918ffe

Please sign in to comment.