]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/ui.lua
lazyvim: absorb coding plugins
[dotfiles.git] / nvim / lua / plugins / ui.lua
index 3da2dd1a2e5db3e37a2b83bf5862c76949f73fbe..0cb899a94543e3e288d1efb5425b0b785603c121 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",
   },
@@ -17,6 +50,7 @@ return {
     lazy = true,
     opts = {
       input = {
+        start_in_insert = false,
         insert_only = false,
       },
     },
@@ -68,12 +102,16 @@ return {
     "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",
@@ -145,7 +183,7 @@ return {
     end
   },
   {
-    "nvim-navic",
+    "SmiteshP/nvim-navic",
   },
   {
     "nvim-web-devicons",