summaryrefslogtreecommitdiffstats
path: root/after/plugin/whichkey.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/whichkey.lua')
-rw-r--r--after/plugin/whichkey.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/after/plugin/whichkey.lua b/after/plugin/whichkey.lua
new file mode 100644
index 0000000..66c8a9e
--- /dev/null
+++ b/after/plugin/whichkey.lua
@@ -0,0 +1,20 @@
+local status_ok, whichkey = pcall(require, "which-key")
+if not status_ok then
+ return
+end
+
+whichkey.setup {
+ icons = {
+ breadcrumb = '>>',
+ separator = '->',
+ },
+ winblend = 0,
+ window = {
+ border = 'shadow',
+ margin = { 1, 5, 2, 5 },
+ },
+ layout = {
+ width = { min = 20, max = 50 },
+ align = 'left',
+ }
+}