aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/which-key.lua
blob: 2d8d47d3a010e0a0522af765ef5325c8c52cb3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
return {
  "folke/which-key.nvim",
  event = "VeryLazy",
  opts = {
    preset = "modern",
    spec = {
      { "<leader>a", group = "ai" },
      { "gm", group = "+Copilot chat" },
      { "gmh", desc = "Show help" },
      { "gmd", desc = "Show diff" },
      { "gmp", desc = "Show system prompt" },
      { "gms", desc = "Show selection" },
      { "gmy", desc = "Yank diff" },
    },

  },
  keys = {
    {
      "<leader>?",
      function()
        require("which-key").show({ global = false })
      end,
      desc = "Buffer Local Keymaps (which-key)",
    },
  },
}