summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/lua/plugins/which-key.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins/which-key.lua')
-rw-r--r--nvim/lua/plugins/which-key.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/nvim/lua/plugins/which-key.lua b/nvim/lua/plugins/which-key.lua
new file mode 100644
index 0000000..b30fd4d
--- /dev/null
+++ b/nvim/lua/plugins/which-key.lua
@@ -0,0 +1,34 @@
+local status_ok, which_key = pcall(require, "which-key")
+if not status_ok then
+ return
+end
+
+local setup = {
+ plugins = {
+ spelling = {
+ enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
+ suggestions = 20, -- how many suggestions should be shown in the list?
+ },
+ },
+ window = {
+ border = "rounded", -- none, single, double, shadow
+ position = "bottom", -- bottom, top
+ margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]
+ padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left]
+ winblend = 0,
+ },
+ layout = {
+ height = { min = 4, max = 25 }, -- min and max height of the columns
+ width = { min = 20, max = 50 }, -- min and max width of the columns
+ spacing = 3, -- spacing between columns
+ align = "center", -- align columns left, center or right
+ },
+}
+local opts = {
+ buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
+ silent = true, -- use `silent` when creating keymaps
+ noremap = true, -- use `noremap` when creating keymaps
+ nowait = true, -- use `nowait` when creating keymaps
+}
+
+which_key.setup(setup) \ No newline at end of file