Shows a Vim warning message to the user.
(msg)
| 52 | |
| 53 | |
| 54 | def _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 | |
| 62 | def _ask_snippets(snippets): |