Skip to content

Commit

Permalink
plugins/which-key: fix icon examples
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
khaneliman committed Aug 27, 2024
1 parent 60ea38d commit 1085bcd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plugins/utils/which-key.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,24 @@ let
opt = options.plugins.which-key;

specExamples = [
# Basic group
# Basic group with custom icon
{
__unkeyed-1 = "<leader>b";
group = "󰓩 Buffers";
group = "Buffers";
icon = "󰓩 ";
}
# Non-default mode
{
__unkeyed = "<leader>c";
mode = "v";
group = "󰄄 Codesnap";
group = "Codesnap";
icon = "󰄄 ";
}
# Group within group
{
__unkeyed-1 = "<leader>bs";
group = "󰒺 Sort";
group = "Sort";
icon = "󰒺 ";
}
# Nested mappings for inheritance
{
Expand Down

0 comments on commit 1085bcd

Please sign in to comment.