summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/show.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conf/plugins/show.lua')
-rw-r--r--lua/conf/plugins/show.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/conf/plugins/show.lua b/lua/conf/plugins/show.lua
new file mode 100644
index 0000000..320526b
--- /dev/null
+++ b/lua/conf/plugins/show.lua
@@ -0,0 +1,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
+}