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"] = {