Skip to content

Commit de2c5b6

Browse files
Make Rider feel more like home
1 parent 5f7f776 commit de2c5b6

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

scripts/open-nvim-from-windows

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env sh
2+
3+
FILE=$1
4+
LINE=$2
5+
6+
if [ "$LINE" = "" ]; then
7+
~/.local/share/bob/nvim-bin/nvim $(wslpath -u $FILE)
8+
else
9+
~/.local/share/bob/nvim-bin/nvim +$LINE $(wslpath -u $FILE)
10+
fi

vimrc.vim

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if has("ide") " https://vi.stackexchange.com/a/43062/11897
1212
set visualbell
1313
set noerrorbells " https://superuser.com/a/677312/468052
1414

15+
nnoremap <c-x><c-e> :! wezterm.exe start -- wsl.exe ~/scripts/open-nvim-from-windows %<cr>
16+
1517
" Mimic Vanilla Vim
1618
nnoremap g, :action JumpToLastChange<cr>
1719
nnoremap g; :action JumpToNextChange<cr>
@@ -25,6 +27,9 @@ if has("ide") " https://vi.stackexchange.com/a/43062/11897
2527
" Hunks
2628
noremap ]h :action VcsShowNextChangeMarker<cr>
2729
noremap [h :action VcsShowPrevChangeMarker<cr>
30+
nnoremap <leader>hp :action VcsShowCurrentChangeMarker<cr>
31+
nnoremap <leader>hb :action Annotate<cr>
32+
nnoremap <leader>hB :action Vcs.ShowTabbedFileHistory<cr>
2833
nnoremap <leader>hr :action Vcs.RollbackChangedLines<cr>
2934
3035
" Diagnostics
@@ -33,9 +38,15 @@ if has("ide") " https://vi.stackexchange.com/a/43062/11897
3338
3439
" Search
3540
nnoremap <leader>// :action Find<cr>
41+
nnoremap <leader>/b :action Switcher<cr>
3642
nnoremap <leader>/g :action FindInPath<cr>
3743
nnoremap <leader>/f :action GotoFile<cr>
3844
45+
" Tests
46+
nnoremap <leader>tr :action RiderUnitTestRunContextAction<cr>
47+
nnoremap <leader>td :action RiderUnitTestDebugContextAction<cr>
48+
nnoremap <leader>tw :action ActivateUnitTestsToolWindow<cr>
49+
3950
" Code Actions
4051
" [c]ode [a]ctions
4152
noremap <leader>ca :action ShowIntentionActions<cr>
@@ -69,10 +80,10 @@ if has("ide") " https://vi.stackexchange.com/a/43062/11897
6980
nnoremap <leader>bc :action BuildSolutionAction<cr>
7081
nnoremap <leader>at :action RiderUnitTestRunSolutionAction<cr>
7182
nnoremap <leader>vp :action ActivateTerminalToolWindow<cr>
72-
nnoremap <leader>tr :action RiderUnitTestRunContextAction<cr>
7383
7484
" Rider Rewrites
7585
nnoremap gi :action GotoImplementation<cr>
86+
nnoremap <c-k> :action ShowErrorDescription<cr>
7687
7788
" Rider Plugins
7889
nnoremap gl :action uk.co.ben_gibson.git.link.ui.actions.menu.CopyAction<cr>

0 commit comments

Comments
 (0)