From 47b025520922ac010b06d36c99fed0eac5d1641d Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 21 Jan 2024 21:53:32 +0100 Subject: [PATCH] better term maps --- lua/custom/mappings.lua | 64 ++++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 10 deletions(-) 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", }, },