diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-03-19 14:27:18 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-03-19 14:27:18 -0500 |
commit | 209c15c008251cd96f0d4ae6a4c797a1ccb1e9bd (patch) | |
tree | e4bc0a7e2a0aea5c1901423910d88ebc72e35d82 /nvim/lua/plugins/which-key.lua | |
parent | 95d6897c7ae05074a4c034d180c834c8534a2582 (diff) |
feat: nvim working mostly
Diffstat (limited to 'nvim/lua/plugins/which-key.lua')
-rw-r--r-- | nvim/lua/plugins/which-key.lua | 34 |
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 |