-- Updated Which-Key Spec local wk = require("which-key") wk.setup {} wk.register({ [""] = { ["/"] = { "Telescope live_grep", "Live Grep" }, P = { '"+P', "Paste from clipboard before cursor" }, a = { "lua require('telescope.builtin').lsp_code_actions()", "Code Actions" }, ac = { "CopilotChatToggle", "Toggle Copilot chat" }, b = { "Telescope buffers", "Buffers" }, d = { "lua require('telescope.builtin').lsp_document_diagnostics()", "LSP Diagnostics" }, f = { "Telescope find_files", "Find File" }, g = { b = { "ToggleBlameLine", "Toggle BlameLine" }, c = { "Neogit commit", "Commit" }, i = { "lua require('telescope').extensions.gh.issues()", "Github Issues" }, name = "Git / VCS", p = { "lua require('telescope').extensions.gh.pull_request()", "Github PRs" }, s = { "Neogit kind=split", "Staging" } }, k = { "lua vim.lsp.buf.signature_help()", "Signature Help" }, l = { e = { "lua vim.lsp.diagnostic.show_line_diagnostics()", "Show Line Diagnostics" }, f = { "lua vim.lsp.buf.formatting_sync()", "Format file" }, name = "LSP", q = { "lua vim.lsp.diagnostic.set_loclist()", "Set Loclist" } }, p = { '"+p', "Paste from clipboard" }, qc = { "lua local input = vim.fn.input('Quick Chat: '); if input ~= '' then require('CopilotChat').ask(input, { selection = require('CopilotChat.select').buffer }) end", "CopilotChat - Quick chat" }, y = { '"+y', "Yank to clipboard" } }, g = { e = { "G", "Bottom" }, h = { "0", "Line start" }, l = { "$", "Line end" }, s = { "^", "First non-blank in line" } }, i = { [""] = { "p", "Paste in Insert Mode" } }, v = { ["<"] = { ""] = { "y", "Yank Selection" }, [""] = { ""] = { ">gv", "Indent Right" }, [">"] = { ">gv", "Indent Right" }, J = { ":m '>+1gv=gv", "Move Down" }, K = { ":m '<-2gv=gv", "Move Up" } } }, { prefix = "" })