From 56758415b40197ff1e7dab653ab24af58727aa4e Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 17 Aug 2024 18:37:18 -0300 Subject: Feat: update all --- lua/plugins/which-key.lua | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'lua/plugins/which-key.lua') 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 ', - '', - function() require('which-key').show(vim.g.maplocalleader) end, - }, + "folke/which-key.nvim", + event = "VeryLazy", + opts = { + preset = "modern" + }, + keys = { + { + "?", + function() + require("which-key").show({ global = false }) + end, + desc = "Buffer Local Keymaps (which-key)", }, - opts = {}, - init = function() vim.opt.timeoutlen = 300 end, - } + }, +} -- cgit v1.2.3