Browse Source

nvim config: auto rustfmt on write file

master
arnaucube 5 years ago
parent
commit
bc5bb49a48
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      init.vim

+ 7
- 0
init.vim

@ -30,6 +30,7 @@ Plug 'rust-lang/rust.vim'
set hidden set hidden
let g:racer_cmd = "/home/user/.cargo/bin/racer" let g:racer_cmd = "/home/user/.cargo/bin/racer"
let g:racer_experimental_completer = 1 let g:racer_experimental_completer = 1
let g:rustfmt_autosave = 1
" javascript " javascript
@ -197,5 +198,11 @@ tnoremap jk
set scrolloff=5 " keep at least 5 lines above/below set scrolloff=5 " keep at least 5 lines above/below
set sidescrolloff=5 " keep at least 5 lines left/right set sidescrolloff=5 " keep at least 5 lines left/right
"" circom syntax
au BufRead,BufNewFile *.circom set filetype=circom
au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
" for file watching
set backupcopy=yes
colorscheme molokai colorscheme molokai

Loading…
Cancel
Save