diff options
Diffstat (limited to 'ftplugin/rust.vim')
-rw-r--r-- | ftplugin/rust.vim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index fce69b4..50645fa 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim | |||
@@ -11,12 +11,3 @@ set errorformat= | |||
11 | \%Inote:\ %m, | 11 | \%Inote:\ %m, |
12 | \%C\ %#-->\ %f:%l:%c, | 12 | \%C\ %#-->\ %f:%l:%c, |
13 | \%E\ \ left:%m,%C\ right:%m\ %f:%l:%c,%Z | 13 | \%E\ \ left:%m,%C\ right:%m\ %f:%l:%c,%Z |
14 | |||
15 | function! RustMake() abort | ||
16 | set makeprg=nix-shell\ --run\ \"cargo\ build\" | ||
17 | silent! make | ||
18 | set makeprg=nix-shell\ --run\ \"cargo\ clippy\" | ||
19 | silent! make | ||
20 | endfunction | ||
21 | |||
22 | nnoremap <leader>r :call RustMake() <bar> silent! redraw <bar> cwindow<cr> | ||