google / google/vim-codefmt

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

Offen
#234 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Vim Script
Sterne
1.1k
Forks
102
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the proposed :CodefmtInfo command and trace how the current buffer, formatter selection, configuration, and last invocation can be accessed. Done means the command produces a report covering the context and diagnostic fields shown in the issue, including the executed command, exit code, and stderr when available.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
vim
Bereich
cli, developer-experience
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.