google / google/vim-codefmt

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

Aperta
#234 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Vim Script
Stelle
1.1k
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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: ...]
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.