aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/which-key.lua
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2024-10-16 21:45:26 +0200
committereric.marin <maarin.eric@gmail.com>2024-10-16 21:45:26 +0200
commitb0cfdab1e93f660fda8f9398e30c9c996a1760f3 (patch)
tree0b64ae82383491383be6570cfd8198db9f765a01 /nvim/lua/plugins/which-key.lua
parentab2dadca189217eb152a2bd157c651e9e3f3145b (diff)
downloaddotfiles-b0cfdab1e93f660fda8f9398e30c9c996a1760f3.tar.gz
dotfiles-b0cfdab1e93f660fda8f9398e30c9c996a1760f3.zip
nvim change
installed neorg removed trouble modified lspsaga
Diffstat (limited to 'nvim/lua/plugins/which-key.lua')
-rw-r--r--nvim/lua/plugins/which-key.lua25
1 files changed, 20 insertions, 5 deletions
diff --git a/nvim/lua/plugins/which-key.lua b/nvim/lua/plugins/which-key.lua
index 5b1383e..4e391f9 100644
--- a/nvim/lua/plugins/which-key.lua
+++ b/nvim/lua/plugins/which-key.lua
@@ -1,10 +1,25 @@
+local config = function()
+ require("which-key").setup()
+ vim.o.timeout = true
+ vim.o.timeoutlen = 500
+end
+
return {
"folke/which-key.nvim",
lazy = true,
event = "VeryLazy",
- init = function()
- vim.o.timeout = true
- vim.o.timeoutlen = 500
- end,
- opts = {}
+ config = config,
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = false })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
+ },
+ },
+ dependencies = {
+ "echasnovski/mini.icons",
+ "nvim-tree/nvim-web-devicons", -- optional
+ },
}