From a703cdbe01c145e299a1722e51be6bc641b02d88 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sat, 6 Apr 2024 08:09:53 -0400 Subject: [PATCH] chore(astrocore): simplify `L` and `H` example mappings --- lua/plugins/astrocore.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index de17c22..c99b395 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -47,14 +47,8 @@ return { -- second key is the lefthand side of the map -- navigate buffer tabs with `H` and `L` - -- L = { - -- function() require("astrocore.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end, - -- desc = "Next buffer", - -- }, - -- H = { - -- function() require("astrocore.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end, - -- desc = "Previous buffer", - -- }, + L = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" }, + H = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" }, -- mappings seen under group name "Buffer" ["bD"] = {