feat nvim: add which-key

This commit is contained in:
Yuan Chiu 2025-04-30 11:54:07 +08:00
parent ac1235e186
commit d313a3e650

View File

@ -0,0 +1,28 @@
return {
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
local wk = require("which-key")
-- 快捷鍵在這裡定義
wk.setup()
end,
},
}