google / google/vim-codefmt

Add maktaba logging for whenever codefmt modifies buffer

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
1.1k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

It would be useful to log an info message whenever codefmt triggers and modifies the buffer, especially for cases where it triggers automatically on save.

It should be possible to verify whether the buffer was actually changed by checking `b:changedtick` before and after running the formatter so we can avoid logging a message if the formatter had no effect.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.