diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index 9016f78..8df6cb5 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -225,45 +225,89 @@ M.toggleterm = { plugin = true, n = { [""] = { - "ToggleTerm direction=float", + "exe v:count1 \"ToggleTerm direction=float\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=float", + "exe v:count1 \"ToggleTerm direction=float\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=tab", + "exe v:count1 \"ToggleTerm direction=tab\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=horizontal", + "exe v:count1 \"ToggleTerm direction=horizontal\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=vertical", + "exe v:count1 \"ToggleTerm direction=vertical\"", + "toggle terminal", + }, + }, + i = { + [""] = { + "exe v:count1 \"ToggleTerm direction=float\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=float\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=tab\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=horizontal\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=vertical\"", "toggle terminal", }, }, t = { [""] = { - "ToggleTerm direction=float", + "exe v:count1 \"ToggleTerm direction=float\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=float", + "exe v:count1 \"ToggleTerm direction=float\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=tab", + "exe v:count1 \"ToggleTerm direction=tab\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=horizontal", + "exe v:count1 \"ToggleTerm direction=horizontal\"", "toggle terminal", }, [""] = { - "ToggleTerm direction=vertical", + "exe v:count1 \"ToggleTerm direction=vertical\"", + "toggle terminal", + }, + }, + x = { + [""] = { + "exe v:count1 \"ToggleTerm direction=float\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=float\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=tab\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=horizontal\"", + "toggle terminal", + }, + [""] = { + "exe v:count1 \"ToggleTerm direction=vertical\"", "toggle terminal", }, },