mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
perf: setup which-key inside config()
and load autocmds and keymaps as normal
This commit is contained in:
parent
6dd32b53e5
commit
478f75cb76
3 changed files with 14 additions and 18 deletions
|
@ -33,11 +33,18 @@ return {
|
|||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
config = {
|
||||
show_help = false,
|
||||
plugins = { spelling = true },
|
||||
key_labels = { ["<leader>"] = "SPC" },
|
||||
},
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
wk.setup({
|
||||
show_help = false,
|
||||
plugins = { spelling = true },
|
||||
key_labels = { ["<leader>"] = "SPC" },
|
||||
})
|
||||
wk.register({
|
||||
f = { name = "+file" },
|
||||
g = { name = "+git" },
|
||||
}, { prefix = "<leader>" })
|
||||
end,
|
||||
},
|
||||
|
||||
-- git signs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue