add keymap to toggle comment in insert mode

This commit is contained in:
2022-02-15 21:50:38 +03:00
parent f5468bc149
commit c7293762b0
2 changed files with 8 additions and 0 deletions

View File

@@ -28,6 +28,12 @@ M.tmap = function(shortcut, command, opts)
map("t", shortcut, command, opts)
end
M.imap = function(shortcut, command, opts)
opts = opts or {}
map("i", shortcut, command, opts)
end
M.list_includes_item = function(list, item)
for _, value in pairs(list) do
if value == item then