From ff02af26e2bec9b520625fc165b8d03ffe49109f Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 12 Jul 2024 17:36:16 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=B9=20Which-key=20Spec=20Update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update mappings to the new which-key spec --- lua/config/keybinds.lua | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index 049ac4f..fada950 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -18,23 +18,15 @@ end, { force = true }) -- ------------------------------- Leader Maps --------------------------------- local wk = require("which-key") -wk.register({ - [""] = { - l = { - name = "󰒲 Lazy", - v = { "Lazy", "󰒲 LazyVim" }, - x = { "LazyExtras", " LazyExtras" }, - }, - g = { - name = " Git", - S = { "LazyGit", " LazyGit" }, - n = { - name = " Gists", - c = { "GistCreate", " Create Gist" }, - f = { "GistList", "󰮗 Find Gists" }, - }, - }, - }, +wk.add({ + { "g", group = " Git" }, + { "gS", "LazyGit", desc = " LazyGit" }, + { "gn", group = " Gists" }, + { "gnc", "GistCreate", desc = " Create Gist" }, + { "gnf", "GistList", desc = "󰮗 Find Gists" }, + { "l", group = "󰒲 Lazy" }, + { "lv", "Lazy", desc = "󰒲 LazyVim" }, + { "lx", "LazyExtras", desc = " LazyExtras" }, }) -- ------------------------------ Abbreviations --------------------------------