Commit Graph

53 Commits

Author SHA1 Message Date
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
veelenga
bde27cd815 Use &shiftwidth only when &expandtab option set 2014-12-11 08:50:27 +02:00
veelenga
85924b0f5f rbeautify as a beautifier for ruby 2014-12-09 12:17:30 +02:00
Alvin Chan
29130fd1bd Add SCSS formatting using sass-convert 2014-09-26 10:29:06 -07:00
Chiel92
c2487fdeb0 Merge branch 'master' of https://github.com/Chiel92/vim-autoformat 2014-09-12 11:12:59 +02:00
Chiel92
fbaa668878 Changed /dev/stdin to - in python definition. Fix #11 #24. 2014-09-12 11:11:02 +02:00
Davide
b070dfd4b8 reflect 'textwidth' in js formatting
Reflect value of vim textwidth in js formatter commandline arguments (formatprg_args_expr_javascript)
2014-08-19 13:03:30 +02:00
Shane Smith
666291341b Add JSON formatting using js-beautify 2014-06-29 15:15:10 -04:00
Curtis Harvey
46a36c8e3a add CSS formatting (using css-beautify) to defaults 2014-05-30 13:42:30 -07:00
Chiel92
a5ef8d6caa a little fix 2013-12-24 11:08:54 +01:00
Raine Virta
77e80232c3 add shiftwidth to html-beautify defaults 2013-12-24 01:03:09 +02:00
Raine Virta
1dab5c1a04 defaults: use tabs with javascript if noexpandtab is set 2013-12-24 01:03:03 +02:00
Chiel92
66995c00d1 Fix #13 and some cleanup. 2013-12-20 20:34:38 +01:00
Chiel92
c023f15219 indent namespace for C# to match vim indent behaviour 2013-06-08 11:29:14 +02:00
Chiel92
276aa72685 textwidth used in autopep8 for python 2013-05-27 10:56:04 +02:00
Chiel92
83c935d35f textwidth option is used with tidy 2013-03-26 18:57:40 +01:00
Chiel92
b04cab1139 bugfix in default.vim 2013-03-22 18:33:43 +01:00
Chiel92
a9158d01d1 expandtab taken into account for astyle 2013-03-16 13:36:08 +01:00
Chiel92
cf21fe7489 Readme update, samples added, bugifx defaults 2013-03-16 12:21:55 +01:00
Chiel92
c73d350fbb js uses softtabstop now, java sample added 2013-03-16 11:16:53 +01:00
Chiel92
b14ce7d6c7 gq remap works for visual mode
verbose mode implemented
2013-03-16 10:36:16 +01:00
Chiel92
78e0e3c292 conditional remap gq works 2013-03-15 23:12:09 +01:00
Chiel92
01539b7d76 a little try 2013-03-13 18:51:26 +01:00
Chiel92
bbba5b4959 option added for no shiftwidth defaults 2013-03-13 15:38:20 +01:00
Chiel92
ec28048d5b bugfix 2013-03-13 15:13:56 +01:00
alexbel
d12f6d6d08 Don't overwrite settings from vimrc 2013-03-12 19:26:51 -04:00
Chiel92
9755bf73d7 defaults converted to one-liners and readme update 2013-03-09 19:52:12 +01:00
Chiel92
2623f9b650 readme update and xhtml support 2013-03-09 19:24:05 +01:00