Closed Inc0n closed 1 year ago
This issue would be fixed by moving formatting to reformatter
(https://github.com/ziglang/zig-mode/issues/39, https://github.com/ziglang/zig-mode/pull/51, https://github.com/ziglang/zig-mode/discussions/75).
When using reformatter, formatting itself is an operation that can be undo-ed, in the status quo we run zig fmt
on the file and revert the buffer, which causes all sorts of issues.
Sometimes, the following would happen on save and result in losses of undo-history.
It is determined that zig-format-on-save is the culprit, and setting it to nil can be a workaround.