diff options
Diffstat (limited to 'lua/plugins/which-key.lua')
| -rw-r--r-- | lua/plugins/which-key.lua | 26 |
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, - } + }, +} |