We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4d5e3 commit 32ae843Copy full SHA for 32ae843
1 file changed
lua/guard/format.lua
@@ -42,7 +42,7 @@ local function update_buffer(bufnr, prev_lines, new_lines, srow, erow, old_inden
42
restore_views(views)
43
end
44
45
- if need_write or util.getopt('save_on_fmt') then
+ if util.getopt('save_on_fmt') and need_write then
46
api.nvim_command('silent! noautocmd write!')
47
48
0 commit comments