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.
This commit is contained in:
Austin Horstman 2024-08-27 10:22:20 -05:00
parent 60ea38d2c4
commit 1085bcd7cc
No known key found for this signature in database

View file

@ -13,21 +13,24 @@ let
opt = options.plugins.which-key; opt = options.plugins.which-key;
specExamples = [ specExamples = [
# Basic group # Basic group with custom icon
{ {
__unkeyed-1 = "<leader>b"; __unkeyed-1 = "<leader>b";
group = "󰓩 Buffers"; group = "Buffers";
icon = "󰓩 ";
} }
# Non-default mode # Non-default mode
{ {
__unkeyed = "<leader>c"; __unkeyed = "<leader>c";
mode = "v"; mode = "v";
group = "󰄄 Codesnap"; group = "Codesnap";
icon = "󰄄 ";
} }
# Group within group # Group within group
{ {
__unkeyed-1 = "<leader>bs"; __unkeyed-1 = "<leader>bs";
group = "󰒺 Sort"; group = "Sort";
icon = "󰒺 ";
} }
# Nested mappings for inheritance # Nested mappings for inheritance
{ {