diff options
Diffstat (limited to 'src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py')
-rw-r--r-- | src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py b/src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py index d715e5a..e8e380e 100644 --- a/src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py +++ b/src/debputy/commands/debputy_cmd/lint_and_lsp_cmds.py @@ -1,3 +1,4 @@ +import random import textwrap from argparse import BooleanOptionalAction @@ -219,9 +220,17 @@ def lsp_editor_glue(context: CommandContext) -> None: alias_of = f" (short for: {payload})" content.append((editor_name, alias_of)) max_name = max(len(c[0]) for c in content) - print("This version of debputy has editor snippets for the following editors: ") + print( + "This version of debputy has instructions or editor config snippets for the following editors: " + ) + print() for editor_name, alias_of in content: print(f" * {editor_name:<{max_name}}{alias_of}") + print() + choice = random.Random().choice(list(_EDITOR_SNIPPETS)) + print( + f"Use `debputy editor-config {choice}` (as an example) to see the instructions for a concrete editor." + ) return result = _EDITOR_SNIPPETS[editor_name] while result in _EDITOR_SNIPPETS: |