From 1085bcd7ccf561577ff52dba76b1cb8d35f2c124 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 27 Aug 2024 10:22:20 -0500 Subject: [PATCH] plugins/which-key: fix icon examples Which-key implemented proper icon support, utilize the icon attribute to properly override/set icons so that alignment doesn't get thrown off and it's inherited with child mappings. --- plugins/utils/which-key.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/utils/which-key.nix b/plugins/utils/which-key.nix index 69613d5e..ba422ecf 100644 --- a/plugins/utils/which-key.nix +++ b/plugins/utils/which-key.nix @@ -13,21 +13,24 @@ let opt = options.plugins.which-key; specExamples = [ - # Basic group + # Basic group with custom icon { __unkeyed-1 = "b"; - group = "󰓩 Buffers"; + group = "Buffers"; + icon = "󰓩 "; } # Non-default mode { __unkeyed = "c"; mode = "v"; - group = "󰄄 Codesnap"; + group = "Codesnap"; + icon = "󰄄 "; } # Group within group { __unkeyed-1 = "bs"; - group = "󰒺 Sort"; + group = "Sort"; + icon = "󰒺 "; } # Nested mappings for inheritance {