Skip to content

Instantly share code, notes, and snippets.

@gerred
Created January 26, 2018 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerred/f2f922821117edf2f7451d54e562d912 to your computer and use it in GitHub Desktop.
Save gerred/f2f922821117edf2f7451d54e562d912 to your computer and use it in GitHub Desktop.
let g:neoformat_rust_rustfmt = {
\ 'exe': 'cargo',
\ 'args': ['+nightly', 'fmt', '--', '--write-mode=plain'],
\ 'stdin': 1,
\ }
let g:neoformat_enabled_rust = ['rustfmt']
Plug 'sbdchd/neoformat'
let g:neoformat_only_msg_on_error = 1
augroup neoformat
autocmd!
autocmd BufWritePre * undojoin | ALELint | Neoformat
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment