From dfda729156598121ba76e0cc77a520549d5b1af0 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 26 Mar 2024 00:37:43 +0000 Subject: [PATCH] nvim: replace which-key with mini.clue --- nvim/lua/plugins/ui.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index 884225d..35882fb 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua @@ -1,5 +1,38 @@ ---@type LazyPluginSpec return { + -- disabled plugins {{{ + { "folke/which-key.nvim", + enabled = false, + }, + -- }}} + { 'echasnovski/mini.clue', + -- NOTE: this caused some issue with unterminated mappings, i.e. gc when there + -- is also gcc. It would simply terminate early and not allow for next mapping. + version = '*', + opts = { + triggers = { + { mode = 'n', keys = '' }, + { mode = 'x', keys = '' }, + -- `g` key + { mode = 'n', keys = 'g' }, + { mode = 'x', keys = 'g' }, + -- Marks + { mode = 'n', keys = "'" }, + { mode = 'n', keys = '`' }, + { mode = 'x', keys = "'" }, + { mode = 'x', keys = '`' }, + -- Window commands + { mode = 'n', keys = '' }, + -- `z` key + { mode = 'n', keys = 'z' }, + { mode = 'x', keys = 'z' }, + }, + clues = { + { mode = 'n', keys = 'b', desc = '+Buffers' }, + { mode = 'n', keys = 'c', desc = '+LSP' }, + }, + }, + }, { "nvim-notify", }, -- 2.48.1