diff --git a/lua/lazyvim/plugins/extras/coding/copilot-chat.lua b/lua/lazyvim/plugins/extras/coding/copilot-chat.lua index 7e636b65..c21c51d6 100644 --- a/lua/lazyvim/plugins/extras/coding/copilot-chat.lua +++ b/lua/lazyvim/plugins/extras/coding/copilot-chat.lua @@ -22,6 +22,7 @@ return { } end, keys = { + { "a", "", desc = "+ai" }, { "aa", function() @@ -66,16 +67,6 @@ return { end, }, - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["a"] = { name = "+ai" }, - }, - }, - }, - -- Telescope integration { "nvim-telescope/telescope.nvim", diff --git a/lua/lazyvim/plugins/extras/coding/yanky.lua b/lua/lazyvim/plugins/extras/coding/yanky.lua index 46dca784..27fa519a 100644 --- a/lua/lazyvim/plugins/extras/coding/yanky.lua +++ b/lua/lazyvim/plugins/extras/coding/yanky.lua @@ -9,7 +9,7 @@ return { }, keys = { -- stylua: ignore - { "p", function() require("telescope").extensions.yank_history.yank_history({ }) end, desc = "Open Yank History" }, + { "p", function() require("telescope").extensions.yank_history.yank_history({ }) end, desc = "Open Yank History" }, { "y", "(YankyYank)", mode = { "n", "x" }, desc = "Yank Text" }, { "p", "(YankyPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Cursor" }, { "P", "(YankyPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Cursor" }, diff --git a/lua/lazyvim/plugins/extras/dap/core.lua b/lua/lazyvim/plugins/extras/dap/core.lua index 06b8862d..44256c33 100644 --- a/lua/lazyvim/plugins/extras/dap/core.lua +++ b/lua/lazyvim/plugins/extras/dap/core.lua @@ -49,17 +49,6 @@ return { opts = {}, }, - -- which key integration - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["d"] = { name = "+debug" }, - }, - }, - }, - -- mason.nvim integration { "jay-babu/mason-nvim-dap.nvim", @@ -85,6 +74,7 @@ return { -- stylua: ignore keys = { + { "d", "", desc = "+debug" }, { "dB", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" }, { "db", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint" }, { "dc", function() require("dap").continue() end, desc = "Continue" }, diff --git a/lua/lazyvim/plugins/extras/editor/leap.lua b/lua/lazyvim/plugins/extras/editor/leap.lua index 6145d641..cf6e7478 100644 --- a/lua/lazyvim/plugins/extras/editor/leap.lua +++ b/lua/lazyvim/plugins/extras/editor/leap.lua @@ -50,14 +50,8 @@ return { update_n_lines = "gzn", -- Update `n_lines` }, }, - }, - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["gz"] = { name = "+surround" }, - }, + keys = { + { "gz", "", desc = "+surround" }, }, }, diff --git a/lua/lazyvim/plugins/extras/editor/refactoring.lua b/lua/lazyvim/plugins/extras/editor/refactoring.lua index ff6351c7..586cda53 100644 --- a/lua/lazyvim/plugins/extras/editor/refactoring.lua +++ b/lua/lazyvim/plugins/extras/editor/refactoring.lua @@ -7,6 +7,7 @@ return { "nvim-treesitter/nvim-treesitter", }, keys = { + { "r", "", desc = "+refactor" }, { "rs", function() @@ -124,15 +125,4 @@ return { end end, }, - - -- which key integration - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["r"] = { name = "+refactor" }, - }, - }, - }, } diff --git a/lua/lazyvim/plugins/extras/lang/tex.lua b/lua/lazyvim/plugins/extras/lang/tex.lua index 0b7796b5..8bddb17d 100644 --- a/lua/lazyvim/plugins/extras/lang/tex.lua +++ b/lua/lazyvim/plugins/extras/lang/tex.lua @@ -5,15 +5,6 @@ return { root = { ".latexmkrc", ".texlabroot", "texlabroot", "Tectonic.toml" }, }) end, - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["l"] = { name = "+vimtex" }, - }, - }, - }, -- Add BibTeX/LaTeX to treesitter { @@ -38,6 +29,9 @@ return { vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog" end, + keys = { + { "l", "", desc = "+vimtext" }, + }, }, -- Correctly setup lspconfig for LaTeX 🚀 diff --git a/lua/lazyvim/plugins/extras/test/core.lua b/lua/lazyvim/plugins/extras/test/core.lua index 973adafe..dd7c7640 100644 --- a/lua/lazyvim/plugins/extras/test/core.lua +++ b/lua/lazyvim/plugins/extras/test/core.lua @@ -1,15 +1,6 @@ return { recommended = true, desc = "Neotest support. Requires language specific adapters to be configured. (see lang extras)", - { - "folke/which-key.nvim", - optional = true, - opts = { - defaults = { - ["t"] = { name = "+test" }, - }, - }, - }, { "nvim-neotest/neotest", dependencies = { "nvim-neotest/nvim-nio" }, @@ -110,6 +101,7 @@ return { end, -- stylua: ignore keys = { + {"t", "", desc = "+test"}, { "tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" }, { "tT", function() require("neotest").run.run(vim.uv.cwd()) end, desc = "Run All Test Files" }, { "tr", function() require("neotest").run.run() end, desc = "Run Nearest" }, diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 739ef1f1..33de0d9f 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -266,16 +266,6 @@ return { main = "ibl", }, - -- Displays a popup with possible key bindings of the command you started typing - { - "folke/which-key.nvim", - opts = function(_, opts) - if LazyVim.has("noice.nvim") then - opts.defaults["sn"] = { name = "+noice" } - end - end, - }, - -- Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu. { "folke/noice.nvim", @@ -309,6 +299,7 @@ return { }, -- stylua: ignore keys = { + { "sn", "", desc = "+noice"}, { "", function() require("noice").redirect(vim.fn.getcmdline()) end, mode = "c", desc = "Redirect Cmdline" }, { "snl", function() require("noice").cmd("last") end, desc = "Noice Last Message" }, { "snh", function() require("noice").cmd("history") end, desc = "Noice History" },