summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/show.lua
blob: 320526b7eecffe06ffae3abeaf0d6e55be03b308 (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
25
26
27
28
29
return { "nvzone/showkeys",
  function()
    require("showkeys").setup {
      position = "top-right",
      winopts = {
        border = vim.g.border_style,
      },

      -- change the way it looks
      winhl = "NormalFloat:Comment,NormalFloat:NormalFloat",
      maxkeys = 3,

      -- change the way keys are displayed
      keyformat = {
        ["<BS>"] = "<BS>",
        ["<CR>"] = "<CR>",
        ["<Space>"] = "<Space>",
        ["<Up>"] = "<Up>",
        ["<Down>"] = "<Down>",
        ["<Left>"] = "<Left>",
        ["<Right>"] = "<Right>",
        ["<PageUp>"] = "<PageUp>",
        ["<PageDown>"] = "<PageDown>",
        ["<M>"] = "Alt",
        ["<C>"] = "Ctrl",
      }
    }
  end
}