Update .config/nvim/lua/plugin/01_whichkey.lua
This commit is contained in:
parent
890a576bfd
commit
4d2c3675d9
1 changed files with 18 additions and 12 deletions
|
|
@ -2,18 +2,24 @@ return {
|
|||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
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 = {
|
||||
{ "<leader>f", group = "find" },
|
||||
{ "<leader>a", group = "ai" },
|
||||
{ "<leader>c", group = "lsp actions" },
|
||||
{ "<leader>s", group = "snippets" },
|
||||
},
|
||||
{ "<leader>c", group = "lsp actions", icon = i.get("lsp", "class") },
|
||||
{ "<leader>s", group = "snippets", icon = i.get("directory", "snippets") },
|
||||
},
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue