]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/ui.lua
nvim: re-enable nvim-navic since removed from lazyvim
[dotfiles.git] / nvim / lua / plugins / ui.lua
index 884225da50025db62a6b016b4264051d736e7428..8a1e155ef1884e7265afb4d92daccbb09eb56239 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",
   },
@@ -146,7 +179,7 @@ return {
     end
   },
   {
-    "nvim-navic",
+    "SmiteshP/nvim-navic",
   },
   {
     "nvim-web-devicons",