aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/which-key.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/lua/plugins/which-key.lua')
-rw-r--r--dot_config/nvim/lua/plugins/which-key.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/which-key.lua b/dot_config/nvim/lua/plugins/which-key.lua
new file mode 100644
index 0000000..62125fe
--- /dev/null
+++ b/dot_config/nvim/lua/plugins/which-key.lua
@@ -0,0 +1,27 @@
+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()
+ local wk = require("which-key")
+ wk.add({
+ { "<leader>d", group = "Debug" },
+ { "<leader>f", group = "Telescope" },
+ { "<leader>t", group = "Test" },
+ { "<leader>c", group = "Code" },
+ })
+ end
+}