]> 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 3da2dd1a2e5db3e37a2b83bf5862c76949f73fbe..35882fb2dadbf518bd32e79c9e4b4b2f94ca6bfd 100644 (file)
@@ -1,5 +1,38 @@
 ---@type LazyPluginSpec
 return {
 ---@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",
   },
   {
     "nvim-notify",
   },
@@ -17,6 +50,7 @@ return {
     lazy = true,
     opts = {
       input = {
     lazy = true,
     opts = {
       input = {
+        start_in_insert = false,
         insert_only = false,
       },
     },
         insert_only = false,
       },
     },