From d8b966730cdb8f245613b2f2ae91b8039ba2d827 Mon Sep 17 00:00:00 2001 From: siduck Date: Tue, 2 Aug 2022 20:21:40 +0530 Subject: [PATCH] remove useless mappings | gt & gT already exists --- lua/core/mappings.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index d44c73f..53793a9 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -83,12 +83,19 @@ M.tabufline = { [""] = { " enew ", "烙 new buffer" }, -- cycle through buffers - [""] = { " Tbufnext ", " goto next buffer" }, - [""] = { " Tbufprev ", " goto prev buffer" }, + [""] = { + function() + require("core.utils").tabuflineNext() + end, + " goto next buffer", + }, - -- cycle through tabs - ["tp"] = { " tabprevious ", " goto next tab" }, - ["tn"] = { " tabnext ", " goto prev tab" }, + [""] = { + function() + require("core.utils").tabuflinePrev() + end, + " goto prev buffer", + }, -- close buffer + hide terminal buffer ["x"] = {