mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
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:
parent
60ea38d2c4
commit
1085bcd7cc
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue