diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
| commit | 56758415b40197ff1e7dab653ab24af58727aa4e (patch) | |
| tree | 7540fa0d34e1c07adb26eb3aa59e529e7ea189a4 /lua/plugins/which-key.lua | |
| parent | 41d3fb238db45b38b2ddb1635f45f098bd963ad2 (diff) | |
| download | nvim-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.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, - } + }, +} |