From 86ec8ee471b98cc951133c30ed77ca6ddb521ffb Mon Sep 17 00:00:00 2001 From: clint Date: Tue, 29 Apr 2025 15:05:17 -0500 Subject: [PATCH] whichkey update --- nvim/.config/nvim/lua/clint/which-key.lua | 88 ++++++++++------------- 1 file changed, 36 insertions(+), 52 deletions(-) diff --git a/nvim/.config/nvim/lua/clint/which-key.lua b/nvim/.config/nvim/lua/clint/which-key.lua index bc21bd1..8036d05 100644 --- a/nvim/.config/nvim/lua/clint/which-key.lua +++ b/nvim/.config/nvim/lua/clint/which-key.lua @@ -3,56 +3,40 @@ local wk = require("which-key") -wk.register({ - [""] = { - -- File related stuff - f = { - name = "+file", - f = "Find File", - s = "Live Search", - b = "File Browser (delete this?)", - r = "Recent Files", - }, - -- Git related stuff - g = { - name = "+git", - g = "LazyGit", - f = "Git Files", - b = "Git Blame (show)", - n = "Next hunk", - N = "Prev hunk", - - }, - r = { - name = "+repl", - p = "Run Python" - }, - t = { - name = "+timestamps", - t = "Print time", - d = "Print date+time" - }, - -- Misc - c = "Change Color Scheme", - y = "Yank to system clipboard", - Y = "Yank to system clipboard", - d = "Diagnostics", - e = "File Explorer", - s = "Find and Replace", - b = "Buffers", - h = "Registers", - o = "Object Explorer", - fo = "Format Current File", - -- LSP related stuff - R = "Rename Object", - K = "Hover", - gd = "Go to definition", - -- Debugging - D = "Debug UI", - B = "Set Breakpoint", - [""] = "Open IPython", - x = "Execute selected code", - [""] = "Execute py file", - [""] = "Debug: Continue", - }, +wk.add({ + { "", desc = "Open IPython" }, + { "", desc = "Execute py file" }, + { "", desc = "Debug: Continue" }, + { "B", desc = "Set Breakpoint" }, + { "D", desc = "Debug UI" }, + { "K", desc = "Hover" }, + { "R", desc = "Rename Object" }, + { "Y", desc = "Yank to system clipboard" }, + { "b", desc = "Buffers" }, + { "c", desc = "Change Color Scheme" }, + { "d", desc = "Diagnostics" }, + { "e", desc = "File Explorer" }, + { "f", group = "file" }, + { "fb", desc = "File Browser (delete this?)" }, + { "ff", desc = "Find File" }, + { "fo", desc = "Format Current File" }, + { "fr", desc = "Recent Files" }, + { "fs", desc = "Live Search" }, + { "g", group = "git" }, + { "gN", desc = "Prev hunk" }, + { "gb", desc = "Git Blame (show)" }, + { "gd", desc = "Go to definition" }, + { "gf", desc = "Git Files" }, + { "gg", desc = "LazyGit" }, + { "gn", desc = "Next hunk" }, + { "h", desc = "Registers" }, + { "o", desc = "Object Explorer" }, + { "r", group = "repl" }, + { "rp", desc = "Run Python" }, + { "s", desc = "Find and Replace" }, + { "t", group = "timestamps" }, + { "td", desc = "Print date+time" }, + { "tt", desc = "Print time" }, + { "x", desc = "Execute selected code" }, + { "y", desc = "Yank to system clipboard" }, })