From f97b157efb0b41f570c7363e729d305fd5cca36d Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Fri, 29 Nov 2024 23:57:13 -0500 Subject: [PATCH] style: changed look of which-key popup window --- .config/nvim/lua/plugins/which-key.lua | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugins/which-key.lua b/.config/nvim/lua/plugins/which-key.lua index eb481dd..ca0086d 100644 --- a/.config/nvim/lua/plugins/which-key.lua +++ b/.config/nvim/lua/plugins/which-key.lua @@ -1,10 +1,26 @@ return { - "folke/which-key.nvim", - event = "VeryLazy", + 'folke/which-key.nvim', + event = 'VeryLazy', init = function() vim.o.timeout = true vim.o.timeoutlen = 500 end, opts = { + preset = 'modern', + sort = { 'local', 'order', 'group', 'alphanum', 'mod' }, + notify = true, + win = { + title = true, + title_pos = 'center', + padding = { 2, 3 }, + }, + plugins = { + marks = true, + registers = true, + spelling = { + enabled = true, + suggestions = 20, + }, + }, }, -} +} \ No newline at end of file