Skip to content

Commit

Permalink
feat(which-key): add icons
Browse files Browse the repository at this point in the history
Also refactor to use new registration method.
  • Loading branch information
xav-ie committed Aug 26, 2024
1 parent e1827c2 commit 70f2a84
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions config/plugins/which-key/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,15 @@
wk.setup {
}
wk.register {
["<leader>"] = {
-- TODO: move into specific plugin?
f = {
name = "+[f]ind",
y = {
name = "+s[y]mbol",
},
},
h = {
name = "+[h]unk",
},
l = {
name = "+[l]sp",
},
n = {
name = "+[n]ode",
},
o = {
name = "+[o]rg",
},
s = {
name = "+fla[s]h",
},
t = {
name = "+[t]oggle",
},
},
wk.add {
{ "<leader>f", group = "[f]ind", icon = "", },
{ "<leader>fy", group = "s[y]mbol", icon = "", },
{ "<leader>h", group = "[h]unk", icon = "", },
{ "<leader>l", group = "[l]sp", icon = "󰁨", },
{ "<leader>n", group = "[n]ode", icon = "", },
{ "<leader>o", group = "[o]rg", icon = "", },
{ "<leader>s", group = "fla[s]h", icon = "󱐋", },
{ "<leader>t", group = "[t]oggle", icon = "", },
}
'';
}

0 comments on commit 70f2a84

Please sign in to comment.