Update .config/nvim/lua/plugin/01_whichkey.lua

This commit is contained in:
Lewis Wynne 2025-11-12 12:52:27 +00:00
parent 890a576bfd
commit 4d2c3675d9

View file

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