From dee3fe8f1625fda71643922691ac856ee822f3d6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 6 May 2025 20:27:04 +0200 Subject: [PATCH] add imap for future annotations import --- .config/lazyvim/after/ftplugin/python.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/lazyvim/after/ftplugin/python.lua b/.config/lazyvim/after/ftplugin/python.lua index 376b877..bae3381 100644 --- a/.config/lazyvim/after/ftplugin/python.lua +++ b/.config/lazyvim/after/ftplugin/python.lua @@ -20,3 +20,8 @@ vim.keymap.set('i', 't', [[import ipdb; ipdb.set_trace() # noqa: E vim.keymap.set('i', 'm', [[if __name__ == "__main__":import syssys.exit()i]]) +vim.keymap.set( + "i", + "a", + [[# needed < 3.14 so that annotations aren't evaluatedfrom __future__ import annotations]] +) -- 2.39.5