summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/which-key.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/lua/plugins/which-key.lua')
-rw-r--r--dot_config/nvim/lua/plugins/which-key.lua41
1 files changed, 2 insertions, 39 deletions
diff --git a/dot_config/nvim/lua/plugins/which-key.lua b/dot_config/nvim/lua/plugins/which-key.lua
index 0cfcf14..7410159 100644
--- a/dot_config/nvim/lua/plugins/which-key.lua
+++ b/dot_config/nvim/lua/plugins/which-key.lua
@@ -1,41 +1,4 @@
--- which-key
--- https://github.com/folke/which-key.nvim
---
--- Shows a popup window with key bindings when the native vim
--- timeout length has expired.
---
--- I go back and forth on whether I like this plugin, but right now I
--- think it's nice as an occasional referenc for stuff I don't use
--- frequently.
-
return {
- "folke/which-key.nvim",
- event = "VeryLazy",
- config = function()
- vim.opt.timeout = true
- vim.opt.timeoutlen = 1000
- local wk = require("which-key")
- wk.setup({
- window = {
- border = "double",
- position = "bottom",
- margin = { 1, 0, 1, 0 },
- padding = { 3, 2, 3, 2 },
- winblend = 20,
- },
- layout = {
- height = { min = 4, max = 25 },
- width = { min = 20, max = 50 },
- spacing = 8,
- align = "center",
- },
- })
- wk.register({
- ["<leader>"] = {
- c = { name = "+code / clipboard" },
- -- d = { name = "+diagnostics" },
- s = { name = "+search" },
- },
- })
- end
+ "folke/which-key.nvim",
+ event = "VeryLazy",
}