diff options
author | tdro <tdro@users.noreply.github.com> | 2020-08-14 21:25:02 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-08-14 21:25:02 -0400 |
commit | a1174a335a0b54c18bb04a4f4a777d1ea0a21e19 (patch) | |
tree | a74c1738c5739a2e8e11b6e9c47176daaf7c6dcb /.vimrc | |
parent | 24a2925ca8a338c8eb09a1407b9c9c8b443bb7a0 (diff) | |
download | dotfiles-a1174a335a0b54c18bb04a4f4a777d1ea0a21e19.tar.gz dotfiles-a1174a335a0b54c18bb04a4f4a777d1ea0a21e19.tar.bz2 dotfiles-a1174a335a0b54c18bb04a4f4a777d1ea0a21e19.zip |
.vimrc: Rust format and REPL
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -291,6 +291,7 @@ augroup AutoCommands autocmd BufWritePost *.yml :call AnsibleCheck() autocmd FileType bash,sh autocmd! BufWritePost <buffer> :call ShellCheck() autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck() + autocmd FileType rust autocmd! BufWritePost <buffer> silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" " REPL commands autocmd FileType go noremap <buffer> <leader>cc :REPL gore<cr> @@ -298,6 +299,7 @@ augroup AutoCommands autocmd FileType php noremap <buffer> <leader>cc :REPL psysh<cr> autocmd FileType elixir noremap <buffer> <leader>cc :REPL iex<cr> autocmd FileType sh noremap <buffer> <leader>cc :REPL dash -x<cr> + autocmd FileType rust noremap <buffer> <leader>cc :REPL evcxr<cr> autocmd FileType nix noremap <buffer> <leader>cc :REPL nix repl<cr> autocmd FileType bash noremap <buffer> <leader>cc :REPL bash -x<cr> autocmd FileType python noremap <buffer> <leader>cc :REPL python<cr> |