]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/ui.lua
lazyvim: remove which-key
[dotfiles.git] / nvim / lua / plugins / ui.lua
index 884225da50025db62a6b016b4264051d736e7428..5271ad65398b946ed82d89625eeb06f1b937ae4c 100644 (file)
@@ -1,5 +1,33 @@
----@type LazyPluginSpec
+---@type LazySpec
 return {
 return {
+  { '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",
   },
@@ -69,12 +97,16 @@ return {
     "indent-blankline.nvim",
   },
   {
     "indent-blankline.nvim",
   },
   {
-    "mini.indentscope",
-    opts = {
-      draw = {
-        animation = require("mini.indentscope").gen_animation.linear({ duration = 10 }),
-      },
-    },
+    "echasnovski/mini.indentscope",
+    version = false, -- wait till new 0.7.0 release to put it back on semver
+    event = "LazyFile",
+    opts = function (_, opts)
+      return {
+        draw = {
+          animation = require("mini.indentscope").gen_animation.linear({ duration = 10 })
+        }
+      }
+    end,
   },
   {
     "nvimdev/dashboard-nvim",
   },
   {
     "nvimdev/dashboard-nvim",
@@ -146,7 +178,7 @@ return {
     end
   },
   {
     end
   },
   {
-    "nvim-navic",
+    "SmiteshP/nvim-navic",
   },
   {
     "nvim-web-devicons",
   },
   {
     "nvim-web-devicons",