aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/which-key.lua
blob: 7db392fbd542e8bc377b7b1fe8f875edab8ebadb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
return {
  "folke/which-key.nvim",
  event = "VeryLazy",
  opts = {},
  keys = {
    {
      "<leader>?",
      function()
        require("which-key").show({ global = false })
      end,
      desc = "Buffer Local Keymaps (which-key)",
    },
  },
  config = function(_, opts)
    local wk = require("which-key")
    wk.setup(opts)
    wk.add({
      { "<leader>d", group = "Debug" },
      { "<leader>f", group = "Telescope" },
      { "<leader>t", group = "Test" },
      { "<leader>c", group = "Code" },
    })
  end
}