google / google/vim-codefmt

Add `:CodefmtInfo` command to report diagnostics to help users check config / diagnose problems

Open
#234 2 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

We should have a command called something like `:CodefmtInfo` that can dump a report on how it's configured wrt the current context and maybe the last known invocation.

For example:
```vim
:CodefmtInfo
```
```
Current buffer: foo.py
Autoformat [enabled|disabled] [using formatter yapf]
Selected formatter: [yapf]
All available formatters: yapf, black, isort, autopep8

Last invocation at [TIMESTAMP]:
Executed command: yapf -blah ...
Exit code: [0|...]
[Stderr: ...]
```

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.