Browse Source

Add snippets for rust

coc
Schneider 6 years ago
parent
commit
6f87dd2327
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 2
      vim/ftplugin/rust.vim
  2. 4
      vim/neosnippets/rust.snip

2
vim/ftplugin/rust.vim

@ -8,3 +8,5 @@ let g:ale_fix_on_save=1
nnoremap <F5> :w<cr>:!cargo run<cr> nnoremap <F5> :w<cr>:!cargo run<cr>
nnoremap <F6> :w<cr>:!cargo test<cr> nnoremap <F6> :w<cr>:!cargo test<cr>
nnoremap <F8> ^wimut <esc>

4
vim/neosnippets/rust.snip

@ -0,0 +1,4 @@
snippet debug
abbr deb
options head
println!("{:?}", ${1});
Loading…
Cancel
Save