diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-10-16 21:45:26 +0200 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-10-16 21:45:26 +0200 |
| commit | b0cfdab1e93f660fda8f9398e30c9c996a1760f3 (patch) | |
| tree | 0b64ae82383491383be6570cfd8198db9f765a01 /nvim/lua/plugins/which-key.lua | |
| parent | ab2dadca189217eb152a2bd157c651e9e3f3145b (diff) | |
| download | dotfiles-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.lua | 25 |
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 + }, } |
