diff --git a/config/nvim/lua/plugins/which-key.lua b/config/nvim/lua/plugins/which-key.lua index 377fb05..7d39a5e 100644 --- a/config/nvim/lua/plugins/which-key.lua +++ b/config/nvim/lua/plugins/which-key.lua @@ -36,8 +36,16 @@ return { -- ── Code ──────────────────────────────────────────────────────────── { 'c', group = '[c] Code' }, - { 'ca', 'lua vim.lsp.buf.code_action()', desc = 'LSP: Code Action' }, - { 'cg', 'lua require("neogen").generate()', desc = 'Generate annotations' }, + { + 'ca', + 'lua vim.lsp.buf.code_action()', + desc = 'LSP: Code Action', + }, + { + 'cg', + 'lua require("neogen").generate()', + desc = 'Generate annotations', + }, -- Code: treesj { 'cc', group = 'Code Split/Join' }, @@ -369,13 +377,17 @@ return { { { '?w', - 'lua require("which-key").show({global = false})', + 'lua require("which-key").show({global = true})', desc = 'Buffer Local Keymaps (which-key)', }, }, -- ── Misc ──────────────────────────────────────────────────────────── - { 'D', 'lua vim.lsp.buf.type_definition()', desc = 'LSP: Type Definition' }, + { + 'D', + 'lua vim.lsp.buf.type_definition()', + desc = 'LSP: Type Definition', + }, { 'e', 'Neotree reveal', desc = 'NeoTree reveal' }, -- ╭─────────────────────────────────────────────────────────╮ diff --git a/docs/nvim-keybindings.md b/docs/nvim-keybindings.md index 4d36ceb..a3264da 100644 --- a/docs/nvim-keybindings.md +++ b/docs/nvim-keybindings.md @@ -2,98 +2,12 @@ ```txt -n / * +n / * [/] Fuzzily search in current buffer] -n hw * - Open harpoon window with telescope -n 1 * - harpoon to file 1 -n hn * - harpoon to next file -n hp * - harpoon to previous file -n ha * - harpoon file -n 5 * - harpoon to file 5 -n 4 * - harpoon to file 4 -n 3 * - harpoon to file 3 -n 2 * - harpoon to file 2 -n tc * CloakToggle - [tc] Toggle Cloak -n xx * Trouble - Toggle Trouble -n xq * Trouble quickfix - Toggle Quickfix -n xl * Trouble loclist - Toggle Loclist -n xd * Trouble document_diagnostics - Toggle Document Diagnostics -n xw * Trouble workspace_diagnostics - Toggle Workspace Diagnostics -n ?s * Neoconf show - Neoconf: Show merged config -n ?m * Neoconf lsp - Neoconf: Show merged LSP config -n ?l * Neoconf local - Neoconf: Local -n ?g * Neoconf global - Neoconf: Global -n ?c * Neoconf - Neoconf: Open -n wl * lua print(vim.inspect(vim.lsp.buf.list_workspace_folders())) - LSP: Workspace List Folders -n wr * lua vim.lsp.buf.remove_workspace_folder() - LSP: Workspace Remove Folder -n wa * lua vim.lsp.buf.add_workspace_folder() - LSP: Workspace Add Folder -n ws * lua require("telescope.builtin").lsp_dynamic_workspace_symbols() - LSP: Workspace Symbols -n ds * lua require("telescope.builtin").lsp_document_symbols() - LSP: Document Symbols -n D * lua vim.lsp.buf.type_definition() - LSP: Type Definition -n ca * lua vim.lsp.buf.code_action() - LSP: Code Action -n cr * lua vim.lsp.buf.rename() - LSP: Rename -n dq * lua vim.diagnostic.setloclist() - Diagnostic: Set loc list -n do * lua vim.diagnostic.open_float() - Diagnostic: Open float - cf * - [f] Format buffer -n e * - NeoTree reveal -n cg * - Generate annotations -n zm * - FZF: search mappings. -n zh * - FZF: search history of opened files -n zb * - FZF: search open buffers. -n zt * - FZF: search open tabs. -n zc * - FZF: search commands. -n zf * - FZF: search for files in given path. -n zg * - FZF: search with rg (aka live grep). -n dc * - DAP: Continue -n db * - DAP: Toggle Breakpoint -n dt * - DAP: Toggle UI -n ht * +n ht * Open Harpoon Quick menu -n dr * - DAP: Reset +n hw * + Open harpoon window with telescope x # * :help v_#-default o % (MatchitOperationForward) @@ -105,13 +19,20 @@ x * * :help v_star-default x @ * mode() == 'V' ? ':normal! @'.getcharstr().'' : '@' :help v_@-default -n K * lua vim.lsp.buf.hover() - LSP: Hover Documentation x Q * mode() == 'V' ? ':normal! @=reg_recorded()' : 'Q' :help v_Q-default -x S VSurround +x R * + Treesitter Search +o R * + Treesitter Search n Y * y$ :help Y-default +o Zk * + Flash Treesitter +x Zk * + Flash Treesitter +n Zk * + Flash Treesitter o [% (MatchitOperationMultiBackward) x [% (MatchitVisualMultiBackward) n [% (MatchitNormalMultiBackward) @@ -123,27 +44,23 @@ n ]% (MatchitNormalMultiForward) n ]d * Jump to the next diagnostic x a% (MatchitVisualTextObject) -n cS CSurround -n cs Csurround -n ds Dsurround -n dp * lua vim.diagnostic.goto_prev() - Diagnostic: Goto Prev -n dn * lua vim.diagnostic.goto_next() - Diagnostic: Goto Next +n gR * :RegexplainerToggle + Toggle Regexplainer o g% (MatchitOperationBackward) x g% (MatchitVisualBackward) n g% (MatchitNormalBackward) -x gS VgSurround -n gR * :RegexplainerToggle - Toggle Regexplainer -n gD * lua vim.lsp.buf.declaration() - LSP: Goto Declaration -n gd * lua vim.lsp.buf.definition() - LSP: Goto Definition -n gr * lua require("telescope.builtin").lsp_references() - LSP: Goto References -n gI * lua vim.lsp.buf.implementation() - LSP: Goto Implementation +n gP * + Close preview windows +n gpr * + Preview references +n gpD * + Preview declaration +n gpi * + Preview implementation +n gpt * + Preview type definition +n gpd * + Preview definition o gc * Comment textobject n gcc * @@ -160,13 +77,14 @@ n j * v:count == 0 ? 'gj' : 'j' Move down n k * v:count == 0 ? 'gk' : 'k' Move up -n n * - Twilight -n ySS YSsurround -n ySs YSsurround -n yss Yssurround -n yS YSurround -n ys Ysurround +o r * + Remote Flash +o zk * + Flash +x zk * + Flash +n zk * + Flash x (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) o (MatchitOperationMultiForward) * :call matchit#MultiMatch("W", "o") o (MatchitOperationMultiBackward) * :call matchit#MultiMatch("bW", "o") @@ -180,44 +98,29 @@ x (MatchitVisualBackward) * :call matchit#Match_wrapper('',0,'v')(MatchitVisualForward) * :call matchit#Match_wrapper('',1,'v'):if col("''") != col("$") | exe ":normal! m'" | endifgv`` n (MatchitNormalBackward) * :call matchit#Match_wrapper('',0,'n') n (MatchitNormalForward) * :call matchit#Match_wrapper('',1,'n') -v VgSurround * :call 27_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1) -v VSurround * :call 27_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0) -n YSurround * 27_opfunc2('setup') -n Ysurround * 27_opfunc('setup') -n YSsurround * 27_opfunc2('setup').'_' -n Yssurround * '^'.v:count1.27_opfunc('setup').'g_' -n CSurround * :call 27_changesurround(1) -n Csurround * :call 27_changesurround() -n Dsurround * :call 27_dosurround(27_inputtarget()) -n SurroundRepeat * . -n * :TmuxNavigateRight -n * :TmuxNavigatePrevious -n * :TmuxNavigateDown -n * :TmuxNavigateLeft -n * :TmuxNavigateUp -s luasnip-jump-prev * +s luasnip-jump-prev * LuaSnip: Jump to the previous node -s luasnip-jump-next * +s luasnip-jump-next * LuaSnip: Jump to the next node -s luasnip-prev-choice * +s luasnip-prev-choice * LuaSnip: Change to the previous choice from the choiceNode -s luasnip-next-choice * +s luasnip-next-choice * LuaSnip: Change to the next choice from the choiceNode -s luasnip-expand-snippet * +s luasnip-expand-snippet * LuaSnip: Expand the current snippet -s luasnip-expand-or-jump * +s luasnip-expand-or-jump * LuaSnip: Expand or jump in the current snippet - luasnip-expand-repeat * + luasnip-expand-repeat * LuaSnip: Repeat last node expansion -n luasnip-delete-check * +n luasnip-delete-check * LuaSnip: Removes current snippet from jumplist n PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p")) -n * - FZF: search for files starting at current directory. n d Show diagnostics under the cursor n d * Show diagnostics under the cursor +n * nohlsearch|diffupdate|normal! + :help CTRL-L-default ``` -- Generated on Wed 25 Sep 2024 14:52:25 EEST +- Generated on Fri 4 Oct 2024 14:49:00 EEST