diff --git a/private_dot_config/nvim/lua/plugin/01_whichkey.lua b/private_dot_config/nvim/lua/plugin/01_whichkey.lua index 0b5e0b0..2095919 100644 --- a/private_dot_config/nvim/lua/plugin/01_whichkey.lua +++ b/private_dot_config/nvim/lua/plugin/01_whichkey.lua @@ -2,18 +2,24 @@ return { { "folke/which-key.nvim", event = "VeryLazy", - opts = { - preset = "helix", - delay = function(ctx) - return ctx.plugin and 0 or 20 - end, - spec = { - { "f", group = "find" }, - { "a", group = "ai" }, - { "c", group = "lsp actions" }, - { "s", group = "snippets" }, - }, - }, + dependencies = { "echasnovski/mini.icons" }, + opts = function() + local i = require("mini.icons") + + return { + preset = "helix", + delay = function(ctx) + return ctx.plugin and 0 or 20 + end, + -- stylua: ignore + spec = { + { "f", group = "find" }, + { "a", group = "ai" }, + { "c", group = "lsp actions", icon = i.get("lsp", "class") }, + { "s", group = "snippets", icon = i.get("directory", "snippets") }, + }, + } + end, keys = { { "?",