Merge branch 'tiziano88-dartfmt'

This commit is contained in:
Chiel ten Brinke 2015-11-05 17:24:30 +01:00
commit 39cd30ae3e
2 changed files with 11 additions and 0 deletions

View File

@ -136,6 +136,9 @@ Here is the link to the installation: https://golang.org/doc/install
* `rustfmt` for __Rust__.
It can be installed using `cargo`, the Rust package manager. Up-to-date installation instructions are on the project page: https://github.com/nrc/rustfmt/#installation.
* `dartfmt` for __Dart__.
Part of the Dart SDK (make sure it is on your PATH). See https://www.dartlang.org/tools/dartfmt/ for more info.
How can I change the behaviour of formatters, or add one myself?
----------------------------------------------------------------
If you need a formatter that is not among the defaults, or if you are not satisfied with the default formatting behaviour that is provided by vim-autoformat, you can define it yourself.

View File

@ -203,3 +203,11 @@ if !exists('g:formatters_rust')
let g:formatters_rust = ['rustfmt']
endif
" Dart
if !exists('g:formatdef_dartfmt')
let g:formatdef_dartfmt = '"dartfmt"'
endif
if !exists('g:formatters_dart')
let g:formatters_dart = ['dartfmt']
endif