From 507950e5feb62a1eaa6be1dd9f311edd51348872 Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Wed, 25 Mar 2026 21:31:41 +0100 Subject: add which-key plugin --- nvim/init.lua | 2 +- nvim/lazy-lock.json | 13 +++++++------ nvim/lua/config/lazy.lua | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 3f71cd1..798835d 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -28,7 +28,7 @@ vim.keymap.set('n', 'gl', ':Git log', { noremap = true, silent = tru vim.keymap.set('n', 'gL', ':0Gclog', { noremap = true, silent = true, desc = 'Git log: this file' }) vim.keymap.set('n', 'ge', ':Gedit', { noremap = true, silent = true, desc = 'Git: return to worktree' }) -vim.keymap.set('n', 'e', ':lua MiniFiles.open(vim.api.nvim_buf_get_name(0), false)', { noremap = true, silent = true }) +vim.keymap.set('n', 'e', ':lua MiniFiles.open(vim.api.nvim_buf_get_name(0), false)', { noremap = true, silent = true, desc = 'Open file tree' }) vim.keymap.set('n', 'aa', ':argadd:argdedupe', { noremap = true, silent = true, desc = 'Add to args' }) vim.keymap.set('n', 'ad', ':argdelete %', { noremap = true, silent = true, desc = 'Delete from args' }) vim.keymap.set('n', 'lr', ':LspRestart', { noremap = true, silent = true, desc = 'LSP: restart' }) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index b4e4898..3b31ae1 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -3,17 +3,18 @@ "auto-dark-mode.nvim": { "branch": "master", "commit": "e300259ec777a40b4b9e3c8e6ade203e78d15881" }, "blink.cmp": { "branch": "main", "commit": "451168851e8e2466bc97ee3e026c3dcb9141ce07" }, "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, - "fzf-lua": { "branch": "main", "commit": "14e2ebc7ed4cef90ffb4fd192ca28c33741818eb" }, - "gitsigns.nvim": { "branch": "main", "commit": "0a80125bace82d82847d40bc2c38a22d62c6dc2d" }, + "fzf-lua": { "branch": "main", "commit": "8a79ee54d6216d10b2f153921a12b152be0c1a20" }, + "gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" }, "gruvbox.nvim": { "branch": "main", "commit": "334d5fd49fc8033f26408425366c66c6390c57bb" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "mini.files": { "branch": "main", "commit": "b4796e09eb103f9f2d1e00aa2dab3753b879b17b" }, "mini.icons": { "branch": "main", "commit": "5b9076dae1bfbe47ba4a14bc8b967cde0ab5d77e" }, - "nvim-lspconfig": { "branch": "master", "commit": "46204c8fdaa36a9aa3768780450e4bc7a210025f" }, + "nvim-lspconfig": { "branch": "master", "commit": "841c6d4139aedb8a3f2baf30cef5327371385b93" }, "nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" }, - "nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" }, + "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" }, - "schemastore.nvim": { "branch": "main", "commit": "66e53f3316515ac8548b47826f8d273955aa7af1" }, + "schemastore.nvim": { "branch": "main", "commit": "cf2b276dc88696b35d55ea4bd55dfaf7d608c9a2" }, "vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" }, - "vim-prettier": { "branch": "master", "commit": "7dbdbb12c50a9f4ba72390cce2846248e4368fd0" } + "vim-prettier": { "branch": "master", "commit": "7dbdbb12c50a9f4ba72390cce2846248e4368fd0" }, + "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } } diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index d4e9f43..053220c 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -81,6 +81,20 @@ require("lazy").setup({ fallback = "dark", } }, + { + "folke/which-key.nvim", + event = "VeryLazy", + opts = {}, + keys = { + { + "?", + function() + require("which-key").show({ global = false }) + end, + desc = "Buffer Local Keymaps (which-key)", + }, + }, + } }, install = { colorscheme = { "gruvbox" } }, checker = { enabled = true, notify = false }, -- cgit v1.3.1