diff --git a/dot_config/nvim/exact_lua/exact_plugins/help.lua b/dot_config/nvim/exact_lua/exact_plugins/help.lua new file mode 100644 index 0000000..271eca4 --- /dev/null +++ b/dot_config/nvim/exact_lua/exact_plugins/help.lua @@ -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 = { + { + "?", + 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, + }, +}