From 2b91aa053ba97233ac42bc3f10301cf7ced56229 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 9 Dec 2025 11:31:27 +0000 Subject: [PATCH] Added missing which-key icons --- lua/config/keys.lua | 6 +++++- lua/keybindings.lua | 2 +- lua/plugins/ui.lua | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 78033b3..d6792ed 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -12,6 +12,11 @@ return { { "h", group = "[H]arpoon", icon="󱡀" }, { "x", group = "[X] Trouble", icon="󰋔" }, }, + commands = { + { "f", group = "[F]ormat", icon="󰗈" }, + { "p", group = "[P]recognition", icon="󰬯" }, + { "?", group = "[?] Cheatsheet", icon="󰧹" }, + }, gitsigns = { { "gs", @@ -231,7 +236,6 @@ return { end end, desc = "[P]recognition", - icon = "󰬯", mode = "n", }, }, diff --git a/lua/keybindings.lua b/lua/keybindings.lua index c9a0d9a..6b52b41 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -16,7 +16,7 @@ vim.keymap.set("n", "", "x", { noremap = true, silent = true }) vim.keymap.set("n", "", ":q", { noremap = true, silent = true }) -- Non standard key mappings are here vim.keymap.set("n", "d", vim.diagnostic.open_float, { desc = "[D]iagnostics" }) -vim.keymap.set("n", "f", vim.lsp.buf.format, { desc = "[F]ormat", icon="󰗈" }) +vim.keymap.set("n", "f", vim.lsp.buf.format, { desc = "[F]ormat" }) vim.keymap.set( "n", "ci", diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index e40ff8a..dbaae7e 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -10,11 +10,13 @@ return { -- UI components and other visual elements are declared here { "MunifTanjim/nui.nvim", lazy = true }, { -- Useful plugin to show you pending keybinds. "folke/which-key.nvim", - event = "VimEnter", + event = "VeryLazy", config = function() local wk = require("which-key") local groups = require("config.keys").groups + local commands = require("config.keys").commands wk.add(groups) + wk.add(commands) end, }, {