]> git.rmz.io Git - dotfiles.git/commitdiff
lazyvim: remove which-key
authorSamir Benmendil <me@rmz.io>
Sun, 9 Feb 2025 23:28:14 +0000 (23:28 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 2 Mar 2025 16:05:27 +0000 (16:05 +0000)
I was already using mini.clue.

nvim/lua/plugins/coding.lua
nvim/lua/plugins/dap.lua
nvim/lua/plugins/editor.lua
nvim/lua/plugins/test.lua
nvim/lua/plugins/ui.lua

index 0ebe444f99cf7e5f95c67f212723011eb22863c6..eaa49cfb68e41b2ca832069939a7a290b37c34c0 100644 (file)
@@ -144,14 +144,6 @@ return {
         },
       }
     end,
         },
       }
     end,
-    config = function(_, opts)
-      require("mini.ai").setup(opts)
-      LazyVim.on_load("which-key.nvim", function()
-        vim.schedule(function()
-          LazyVim.mini.ai_whichkey(opts)
-        end)
-      end)
-    end,
   },
   -- comments
   { "numToStr/Comment.nvim",
   },
   -- comments
   { "numToStr/Comment.nvim",
index 8657ab85fcb1b34888e03c879f724bec39a8769d..483d40f7af44d2bcb423d1ffb592178c3520f911 100644 (file)
@@ -39,16 +39,6 @@ return {
       opts = {},
     },
 
       opts = {},
     },
 
-    -- which key integration
-    {
-      "folke/which-key.nvim",
-      opts = {
-        defaults = {
-          ["<leader>d"] = { name = "+debug" },
-        },
-      },
-    },
-
     -- mason.nvim integration
     {
       "jay-babu/mason-nvim-dap.nvim",
     -- mason.nvim integration
     {
       "jay-babu/mason-nvim-dap.nvim",
index 79380536571671e57a35f0591676249835c5f4c4..deab249f45c3716114f7788d7e66a9679bd7f535 100644 (file)
@@ -194,77 +194,4 @@ return {
       },
     },
   },
       },
     },
   },
-  { "folke/which-key.nvim",
-    -- which-key helps you remember key bindings by showing a popup
-    -- with the active keybindings of the command you started typing.
-    -- TODO: replace with mini.clue
-    event = "VeryLazy",
-    opts_extend = { "spec" },
-    opts = {
-      preset = "helix",
-      defaults = {},
-      spec = {
-        {
-          mode = { "n", "v" },
-          { "<leader><tab>", group = "tabs" },
-          { "<leader>c", group = "code" },
-          { "<leader>d", group = "debug" },
-          { "<leader>dp", group = "profiler" },
-          { "<leader>f", group = "file/find" },
-          { "<leader>g", group = "git" },
-          { "<leader>gh", group = "hunks" },
-          { "<leader>q", group = "quit/session" },
-          { "<leader>s", group = "search" },
-          { "<leader>u", group = "ui", icon = { icon = "󰙵 ", color = "cyan" } },
-          { "<leader>x", group = "diagnostics/quickfix", icon = { icon = "󱖫 ", color = "green" } },
-          { "[", group = "prev" },
-          { "]", group = "next" },
-          { "g", group = "goto" },
-          { "gs", group = "surround" },
-          { "z", group = "fold" },
-          {
-            "<leader>b",
-            group = "buffer",
-            expand = function()
-              return require("which-key.extras").expand.buf()
-            end,
-          },
-          {
-            "<leader>w",
-            group = "windows",
-            proxy = "<c-w>",
-            expand = function()
-              return require("which-key.extras").expand.win()
-            end,
-          },
-          -- better descriptions
-          { "gx", desc = "Open with system app" },
-        },
-      },
-    },
-    keys = {
-      {
-        "<leader>?",
-        function()
-          require("which-key").show({ global = false })
-        end,
-        desc = "Buffer Keymaps (which-key)",
-      },
-      {
-        "<c-w><space>",
-        function()
-          require("which-key").show({ keys = "<c-w>", loop = true })
-        end,
-        desc = "Window Hydra Mode (which-key)",
-      },
-    },
-    config = function(_, opts)
-      local wk = require("which-key")
-      wk.setup(opts)
-      if not vim.tbl_isempty(opts.defaults) then
-        LazyVim.warn("which-key: opts.defaults is deprecated. Please use opts.spec instead.")
-        wk.register(opts.defaults)
-      end
-    end,
-  },
 }
 }
index e4bc07c0f9d2bd6af57647bee3d48342a248806e..49d6dd6b5ec4ff8c7b56a83b83c1673b33b3a37b 100644 (file)
@@ -1,10 +1,4 @@
 return {
 return {
-  {
-    "folke/which-key.nvim",
-    opts = {
-      defaults = { ["<leader>t"] = { name = "+test" }, },
-    },
-  },
   {
     "nvim-neotest/neotest",
     opts = {
   {
     "nvim-neotest/neotest",
     opts = {
index 0cb899a94543e3e288d1efb5425b0b785603c121..5271ad65398b946ed82d89625eeb06f1b937ae4c 100644 (file)
@@ -1,10 +1,5 @@
----@type LazyPluginSpec
+---@type LazySpec
 return {
 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.
   { '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.