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",
|
"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>?",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue