Merge branch 'tiziano88-dartfmt'
This commit is contained in:
commit
39cd30ae3e
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user