Commit Graph

80 Commits

Author SHA1 Message Date
Theo Belaire
9843c361cd astylerc not actually passing correct file
I think there was a bug, you don't pass `.astylerc`, only `.astyle` when you detect that there is a file named `.astylerc`
2016-05-12 23:10:39 -04:00
Patrick C. McGinty
55929ec762 Add YAPF Python formatter 2016-04-28 15:57:04 -10:00
Chiel ten Brinke
713e7c2580 Only use range arguments in visual mode for autopep8. 2016-04-06 17:06:36 +02:00
Steve Dignam
3fdd0aa024 added remark for markdown 2016-03-19 00:08:33 -04:00
Chiel ten Brinke
978e4ece4f Add more default fallback features.
Add removing whitespace and retabbing.
2016-03-11 18:09:05 +01:00
Chiel ten Brinke
9a56b056bc Merge branch 'astyle' of https://github.com/sbdchd/vim-autoformat into sbdchd-astyle 2016-02-29 12:49:40 +01:00
Chiel ten Brinke
66eb30f139 Merge branch 'fix/clang-parameters' of https://github.com/tresorit/vim-autoformat into tresorit-fix/clang-parameters 2016-02-29 10:22:08 +01:00
David Dvorszki
20e5ca13fa fixed clang's --assume-filename parameter
it needs the full path of the file
2016-02-26 16:17:09 +01:00
Steve Dignam
72fb185c77 updated js-beautify for json to use config file 2016-02-25 11:33:02 -05:00
Steve Dignam
896998c368 updated js-beautify formatter to use config file 2016-02-22 14:55:23 -05:00
Steve Dignam
4eba53eb3f updated astyle to use .astylerc if available 2016-02-22 14:37:43 -05:00
Steve Dignam
b25fde99ad added goimports formatter for go 2016-02-21 00:39:06 -05:00
Chiel ten Brinke
f78c47c34b Merge branch 'master' of https://github.com/sbdchd/vim-autoformat into sbdchd-master 2016-02-17 17:01:00 +01:00
Steve Dignam
6fef83ed54 updated astyle java formatter to use java style 2016-02-14 14:22:18 -05:00
Steve Dignam
cb4f717fbe minor changes & formatting changes 2016-02-11 11:20:59 -05:00
Chiel ten Brinke
f9cc5ff1b3 Merge branch 'master' into dev 2015-12-23 17:01:37 +01:00
Chiel ten Brinke
7902a12391 Cleanup and update README. 2015-12-15 13:15:05 +01:00
Chiel ten Brinke
ac1aa285a3 Make clang config finder relative to buffer file. 2015-12-07 18:34:27 +01:00
Andrew Barchuk
01e55b8535 Add stylish-haskell prettifier 2015-12-05 23:10:58 +02:00
Chiel ten Brinke
d704fd1647 Add config file detection for clang-format.
Also
 - add CurrentFormatter command.
 - more verbosity.
 - update readme.
2015-12-04 09:59:23 +01:00
Chiel ten Brinke
29e088848a Correct typo in perltidy definition. 2015-12-03 17:19:25 +01:00
Abdurrahman Aborazmeh
12a9d4c30c Add perltidy 2015-11-30 06:19:22 +02:00
Tiziano Santoro
ae85d2dfb6 Add dartfmt 2015-11-05 14:32:43 +00:00
Johann
8adfaeee1e Add rustfmt
This adds rustfmt to the list of default formatters.
2015-11-03 14:52:15 +01:00
Nicolas Goy
e37d0a289c Fix quotes to have the bufname evaluated dynamically 2015-10-31 11:55:06 +01:00
Nicolas Goy
e7432ba246 Fix https://github.com/Chiel92/vim-autoformat/issues/84 2015-10-28 15:17:43 +01:00
Chiel92
f6bbac220b Revert unnecessary distinction between autopep8 versions. 2015-10-13 18:10:07 +02:00
Chiel92
ebce50ee3b Support another autopep8 version. 2015-10-10 14:00:00 +02:00
Chiel92
d3d07cb23e Use shiftwidth() instead of &shiftwidth. 2015-10-08 18:15:41 +02:00
philolo1
247f2d98e7 make the formatter options be configureable in the vimrc 2015-08-08 11:05:41 +02:00
Chiel92
399ea3a44d Minor clean up. 2015-08-01 06:35:59 +02:00
Chiel92
6eb339b641 Add tidy definition for html 2015-06-13 17:53:44 +02:00
Chiel92
35eb03c3d3 Add another go definition 2015-06-13 16:30:13 +02:00
Dani Hodovic
a3f65420ea Added golang - gofmt support
Added support for gofmt without any of the extra formatting options
enabled by default. Extra options can be found using `gofmt --help`
(-r, -s).
2015-06-13 11:39:06 +02:00
Chiel92
8e72f291c7 Fix broken definition. Fix #53. 2015-06-09 10:18:22 +02:00
Chiel92
bafaadaaee Clean up, update readme 2015-06-06 11:54:30 +02:00
Chiel92
b553cd17de Add possibility to extend $PATH for formatters. Update README. 2015-05-31 20:58:14 +02:00
Chiel92
2232436991 Fix bug in translating verbose flag to python 2015-05-30 16:18:30 +02:00
Chiel92
495dc9651d Support python cli-version of js-beautify by default 2015-05-30 16:11:37 +02:00
Chiel92
5d90bb9241 Clang-format accepts ranges. Update readme. 2015-05-30 12:12:06 +02:00
Chiel92
bb004752d3 Merge branch 'multiple-formatters' of https://github.com/Chiel92/vim-autoformat into multiple-formatters 2015-05-30 11:59:15 +02:00
Chiel92
b1b6b87309 Update readme. Ranged do not need separate definition. 2015-05-30 11:12:02 +02:00
Chiel92
55fca18a96 Providing range for autopep8 works. 2015-05-30 11:02:07 +02:00
Chiel92
a4533d1769 Update default definitions. Readme update. 2015-05-23 14:25:29 +02:00
Chiel92
2ed8f00bb5 Try all available formatters until one works 2015-05-23 10:02:05 +02:00
Michael Robinson
57b34851c3 Updated jscs default 2015-05-21 01:05:56 +12:00
Michael Robinson
9a9314d351 Added jscs definition for JavaScript 2015-05-21 00:56:29 +12:00
Chiel92
dfd9461f23 Multiple formatters. Don't write errors to buffer.
Using python we can check for formatter errors instead of writing the
errors to the buffer. Multiple formatters can be supplied by lists now.

Backward compatibility breaks:
 - Variable names have changed
 - Formatter is specified as one expression
 - gq has been removed, Autoformat should accept ranges
 - python has to be compiled in

To be done:
 - Find easy way to selected default formatter out of available formatter
 - Make autoformat accept ranges
2015-05-18 19:27:00 +02:00
Dani Hodovic
c6afe09669 Added TypeScript formatting options
vvakame/typescript-formatter now support reading from stdin, but a
filename has to be specified. I've tried it with both unsaved and saved
buffers and it works fine.
2015-03-22 17:03:36 +01:00
Alex Dunn
8446318085 Fix #34: Add Objective-C Support 2015-01-08 01:48:38 -08:00