aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/which-key.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-08-17 18:37:18 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-08-17 18:37:18 -0300
commit56758415b40197ff1e7dab653ab24af58727aa4e (patch)
tree7540fa0d34e1c07adb26eb3aa59e529e7ea189a4 /lua/plugins/which-key.lua
parent41d3fb238db45b38b2ddb1635f45f098bd963ad2 (diff)
downloadnvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.tar.gz
nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.zip
Feat: update all
Diffstat (limited to 'lua/plugins/which-key.lua')
-rw-r--r--lua/plugins/which-key.lua26
1 files changed, 14 insertions, 12 deletions
diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua
index 50cd483..b9a47db 100644
--- a/lua/plugins/which-key.lua
+++ b/lua/plugins/which-key.lua
@@ -1,14 +1,16 @@
return {
- 'folke/which-key.nvim',
- event = 'VeryLazy',
- keys = {
- {
- -- See: https://github.com/folke/which-key.nvim/issues/476
- desc = 'Workaround for which-key not showing up on <localleader>',
- '<localleader>',
- function() require('which-key').show(vim.g.maplocalleader) end,
- },
+ "folke/which-key.nvim",
+ event = "VeryLazy",
+ opts = {
+ preset = "modern"
+ },
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = false })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
},
- opts = {},
- init = function() vim.opt.timeoutlen = 300 end,
- }
+ },
+}