MCPcopy
hub / github.com/SirVer/ultisnips / _show_user_warning

Function _show_user_warning

pythonx/UltiSnips/snippet_manager.py:54–59  ·  view source on GitHub ↗

Shows a Vim warning message to the user.

(msg)

Source from the content-addressed store, hash-verified

52
53
54def _show_user_warning(msg):
55 """Shows a Vim warning message to the user."""
56 vim.command("echohl WarningMsg")
57 escaped = msg.replace('"', '\\"')
58 vim.command(f'echom "{escaped}"')
59 vim.command("echohl None")
60
61
62def _ask_snippets(snippets):

Callers 1

_file_to_editMethod · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected