]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/ui.lua
nvim: replace which-key with mini.clue
[dotfiles.git] / nvim / lua / plugins / ui.lua
index 9745a30b213adc58bf3fbd16fea7802f19f8f626..35882fb2dadbf518bd32e79c9e4b4b2f94ca6bfd 100644 (file)
@@ -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. <L>gc when there 
+    -- is also <L>gcc. It would simply terminate early and not allow for next mapping.
+    version = '*',
+    opts = {
+      triggers = {
+        { mode = 'n', keys = '<Leader>' },
+        { mode = 'x', keys = '<Leader>' },
+        -- `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 = '<C-w>' },
+        -- `z` key
+        { mode = 'n', keys = 'z' },
+        { mode = 'x', keys = 'z' },
+      },
+      clues = {
+        { mode = 'n', keys = '<Leader>b', desc = '+Buffers' },
+        { mode = 'n', keys = '<Leader>c', desc = '+LSP' },
+      },
+    },
+  },
   {
     "nvim-notify",
   },
@@ -12,6 +45,16 @@ return {
       },
     },
   },
+  {
+    "stevearc/dressing.nvim",
+    lazy = true,
+    opts = {
+      input = {
+        start_in_insert = false,
+        insert_only = false,
+      },
+    },
+  },
   {
     "noice.nvim",
     enabled = false,