diff --git a/docs/nvim-keybindings.md b/docs/nvim-keybindings.md index cdc000d..ab6aaa1 100644 --- a/docs/nvim-keybindings.md +++ b/docs/nvim-keybindings.md @@ -2,7 +2,6 @@ ```txt -n * nohlsearch n zg * :Rg FZF: search with rg (aka live grep). n zm * :Maps @@ -19,35 +18,85 @@ n zf * :FZF FZF: search for files in given path. n tc * CloakToggle [tc] Toggle Cloak -n 4 * - harpoon to file 4 -n 3 * - harpoon to file 3 -n 2 * - harpoon to file 2 -n 1 * +n / * + [/] Fuzzily search in current buffer] +n ht * +n 1 * harpoon to file 1 -n xn * +n xn * harpoon to next file -n xa * - harpoon quick menu -n xN * +n xN * harpoon to previous file -n xA * - harpoon file -n 5 * +n xa * + Open harpoon window +n 5 * harpoon to file 5 -n tz * - [tz] Toggle ZenMode -n e * - f * +n 4 * + harpoon to file 4 +n 3 * + harpoon to file 3 +n 2 * + harpoon to file 2 +n gB * :G blame +n gb * :Telescope git_branches +n gP * :Neogit push +n gp * :Neogit pull +n gc * :Neogit commit +n gs * +n e * + NeoTree reveal +n ca * + LSP: Code Action +n wl * + LSP: Workspace List Folders +n wr * + LSP: Workspace Remove Folder +n wa * + LSP: Workspace Add Folder +n ws * + LSP: Workspace Symbols +n D * + LSP: Type Definition +n dq * + Diagnostic: Set loc list +n do * + Diagnostic: Open float +n cr * + LSP: Rename +n ds * + LSP: Document Symbols +n ?s * + Neoconf: Show merged config +n ?m * + Neoconf: Show merged LSP config +n ?l * + Neoconf: Local +n ?g * + Neoconf: Global +n ?c * + Neoconf: Open + f * [f] Format buffer n qq * wq! - Quickly Quit -n bq * - Open diagnostic [Q]uickfix list -n be * - Show diagnostic [E]rror messages + [qq] Quickly Quit +n xe * GoIfErr + Go If Error +v * +n * +n qf * :q + Quicker close split +n bw :Bwipeout + Buffer: Wipeout +n bd :Bdelete + Buffer: Delete +n bl :bnext + Buffer: Next +n bh :bprev + Buffer: Prev +n bj :bfirst + Buffer: First +n bk :blast + Buffer: Last x # * :help v_#-default o % (MatchitOperationForward) @@ -59,8 +108,17 @@ x * * :help v_star-default x @ * mode() == 'V' ? ':normal! @'.getcharstr().'' : '@' :help v_@-default +n B ^ +n E $ +n K * + LSP: Hover Documentation +n QQ :q! + Quickly Quit x Q * mode() == 'V' ? ':normal! @=reg_recorded()' : 'Q' :help v_Q-default +x S VSurround +n WW :w! + Force write n Y * y$ :help Y-default o [% (MatchitOperationMultiBackward) @@ -74,39 +132,39 @@ n ]% (MatchitNormalMultiForward) n ]d * Jump to the next diagnostic x a% (MatchitVisualTextObject) -o al - Around last textobject -o an - Around next textobject -x al - Around last textobject -x an - Around next textobject -o a - Around textobject -x a - Around textobject -n dj * - Go to next [D]iagnostic message -n dk * - Go to previous [D]iagnostic message +n cS CSurround +n cs Csurround +n ds Dsurround +n dn * + Diagnostic: Goto Next +n dp * + Diagnostic: Goto Prev o g% (MatchitOperationBackward) x g% (MatchitVisualBackward) n g% (MatchitNormalBackward) +x gS VgSurround +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 n gR * :RegexplainerToggle Toggle Regexplainer -o g] - Move to right "around" -x g] - Move to right "around" -n g] - Move to right "around" -o g[ - Move to left "around" -x g[ - Move to left "around" -n g[ - Move to left "around" +n gd * + LSP: Goto Definition +n gr * + LSP: Goto References +n gI * + LSP: Goto Implementation +n gD * + LSP: Goto Declaration o gc * Comment textobject n gcc * @@ -119,54 +177,18 @@ x gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) n gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) -o il - Inside last textobject -o in - Inside next textobject -x il - Inside last textobject -x in - Inside next textobject -o i - Inside textobject -x i - Inside textobject -n shn * - Highlight next surrounding -n sFn * - Find next left surrounding -n sfn * - Find next right surrounding -n srn * - Replace next surrounding -n sdn * - Delete next surrounding -n shl * - Highlight previous surrounding -n sFl * - Find previous left surrounding -n sfl * - Find previous right surrounding -n srl * - Replace previous surrounding -n sdl * - Delete previous surrounding -x sa * :lua MiniSurround.add('visual') - Add surrounding to selection -n sn * - Update `MiniSurround.config.n_lines` -n sh * - Highlight surrounding -n sF * - Find left surrounding -n sf * - Find right surrounding -n sr * - Replace surrounding -n sd * - Delete surrounding -n sa * - Add surrounding +n j * v:count == 0 ? 'gj' : 'j' +n k * v:count == 0 ? 'gk' : 'k' +n n * + Twilight +n ss * :noh +n tT * :TransparentToggle + Toggle Transparency +n ySS YSsurround +n ySs YSsurround +n yss Yssurround +n yS YSurround +n ys Ysurround x (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) o (MatchitOperationMultiForward) * :call matchit#MultiMatch("W", "o") o (MatchitOperationMultiBackward) * :call matchit#MultiMatch("bW", "o") @@ -180,6 +202,20 @@ 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') +n * :TmuxNavigatePrevious +n * :TmuxNavigateDown +n * :TmuxNavigateRight +n * :TmuxNavigateLeft +v VgSurround * :call 28_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1) +v VSurround * :call 28_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0) +n YSurround * 28_opfunc2('setup') +n Ysurround * 28_opfunc('setup') +n YSsurround * 28_opfunc2('setup').'_' +n Yssurround * '^'.v:count1.28_opfunc('setup').'g_' +n CSurround * :call 28_changesurround(1) +n Csurround * :call 28_changesurround() +n Dsurround * :call 28_dosurround(28_inputtarget()) +n SurroundRepeat * . n * :Files FZF: search for files starting at current directory. o (fzf-maps-o) * :call fzf#vim#maps('o', 0) @@ -187,21 +223,38 @@ x (fzf-maps-x) * :call fzf#vim#maps('x', 0) n (fzf-maps-n) * :call fzf#vim#maps('n', 0) n (fzf-normal) * n (fzf-insert) * i -n * +s luasnip-jump-prev * + LuaSnip: Jump to the previous node +s luasnip-jump-next * + LuaSnip: Jump to the next node +s luasnip-prev-choice * + LuaSnip: Change to the previous choice from the choiceNode +s luasnip-next-choice * + LuaSnip: Change to the next choice from the choiceNode +s luasnip-expand-snippet * + LuaSnip: Expand the current snippet +s luasnip-expand-or-jump * + LuaSnip: Expand or jump in the current snippet + luasnip-expand-repeat * + LuaSnip: Repeat last node expansion +n luasnip-delete-check * + LuaSnip: Removes current snippet from jumplist +n PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p")) n * w Save file -n * -n * -n * +n * :TmuxNavigateUp n * echo "Use j to move!!" n * echo "Use k to move!!" n * echo "Use l to move!!" n * echo "Use h to move!!" +n . * :vertical resize +10 + V Resize + +n , * :vertical resize -10 + V Resize - n d Show diagnostics under the cursor n d * Show diagnostics under the cursor -n * ``` -- Generated on Sat 10 Aug 2024 13:01:59 EEST +- Generated on Mon 23 Sep 2024 10:24:56 EEST diff --git a/scripts/create-nvim-keymaps.sh b/scripts/create-nvim-keymaps.sh index 012ab82..22e123f 100755 --- a/scripts/create-nvim-keymaps.sh +++ b/scripts/create-nvim-keymaps.sh @@ -15,7 +15,7 @@ main() printf "\`\`\`txt" } > "$DEST" - NVIM_APPNAME="nvim-kickstart" nvim -c "redir! >> $DEST" -c 'silent verbose map' -c 'redir END' -c 'q' + nvim -c "redir! >> $DEST" -c 'silent verbose map' -c 'redir END' -c 'q' printf "\n\`\`\`\n\n- Generated on %s\n" "$(date)" >> "$DEST"