feat nvim: add which-key
This commit is contained in:
parent
ac1235e186
commit
d313a3e650
28
dot_config/nvim/exact_lua/exact_plugins/help.lua
Normal file
28
dot_config/nvim/exact_lua/exact_plugins/help.lua
Normal 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,
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user