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
Chiel ten Brinke
81f5e989c2
Add bufferlocal variants for all options.
2016-03-30 10:01:56 +02:00
Chiel ten Brinke
5b22a44982
Merge branch 'sbdchd-remark'
2016-03-21 15:56:47 +01:00
Chiel ten Brinke
2d2d200c06
Fix crash related to environment variables containing unicode.
...
Also use Python 3 instead of 2 when both are available.
2016-03-21 15:46:29 +01:00
Chiel ten Brinke
1110775670
Merge branch 'remark' of https://github.com/sbdchd/vim-autoformat into sbdchd-remark
2016-03-21 15:00:04 +01:00
Steve Dignam
3fdd0aa024
added remark for markdown
2016-03-19 00:08:33 -04:00
Chiel ten Brinke
383fbdb716
Fix vim-autoformat hanging when auto indenting.
2016-03-17 11:23:30 +01: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
4ef9e937c0
Don't touch &formatprg.
...
Makes sure that gq can always be used in its default fashion.
2016-03-10 17:18:15 +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
e3542648f1
Fix some verbosity issues.
2016-02-18 10:13:07 +01: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
Chiel ten Brinke
b939719fe6
Fix IndexError for when stdout and stderr of formatter are empty.
2016-02-15 09:50:41 +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
MeLody
37a6b7f979
add swith to default gg=G
2015-12-14 16:41:01 +08:00
frtmelody
b01c85e8f7
Update autoformat.vim
...
disable gg=G
2015-12-13 16:59:33 +08: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
Chiel ten Brinke
a5013d1a6a
Merge branch 'dev'
2015-11-12 15:22:22 +01:00
Chiel ten Brinke
67222e2a2f
Substitute \n with os.linesep. Cleanup change log.
2015-11-12 11:30:59 +01:00
Chiel ten Brinke
289c66899f
Append newline to text before sending to formatter.
2015-11-11 18:21:35 +01: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
Chiel92
02627f491b
Merge branch 'dev'
2015-10-31 19:01:31 +01:00
Nicolas Goy
e37d0a289c
Fix quotes to have the bufname evaluated dynamically
2015-10-31 11:55:06 +01:00
Chiel ten Brinke
1243463143
Also take different eols into account for removing last empty line
2015-10-29 17:25:39 +01:00
Chiel ten Brinke
735d709e84
Fix python3 support.
2015-10-29 12:22:48 +01:00
Nicolas Goy
e7432ba246
Fix https://github.com/Chiel92/vim-autoformat/issues/84
2015-10-28 15:17:43 +01:00
Chiel ten Brinke
e6ecfff004
Merge master.
2015-10-28 13:59:03 +01:00
Chiel ten Brinke
10e80a996c
Merge branch 'master' into dev
2015-10-28 13:57:45 +01:00
Chiel ten Brinke
8a740ab186
Try all possible new line characters to split on.
2015-10-28 13:57:22 +01:00
Chiel92
f6bbac220b
Revert unnecessary distinction between autopep8 versions.
2015-10-13 18:10:07 +02:00
Chiel92
2b1c834271
Merge branch 'master' of https://github.com/Chiel92/vim-autoformat
2015-10-10 14:00:53 +02:00
Chiel92
ebce50ee3b
Support another autopep8 version.
2015-10-10 14:00:00 +02:00
Chris Coe
27abe69588
quick fix for both if and else conditions
2015-10-10 07:41:51 -04:00
Chris Coe
62554bd2b0
fix endline in python3
2015-10-08 17:06:58 -04:00
Chiel92
d3d07cb23e
Use shiftwidth() instead of &shiftwidth.
2015-10-08 18:15:41 +02:00
Chiel92
e1e082a970
attempt crossplatform line endings
2015-08-31 21:11:15 +02:00
Chiel92
0ea8377eaa
Cleanup
2015-08-08 14:37:21 +02:00
Fredrik Hansson
9545f0cfcf
fix for using the default gg=G on files without formatting definitions at all
2015-08-08 14:01:26 +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
a5b99fa608
Remove pendent newline from formatter output. Fix #61 .
2015-08-01 05:57:54 +02:00
Chiel92
509f982da6
Update readme
2015-06-22 09:18:49 +02:00
Chiel92
47bd95f672
Ugly hack to support +python3
2015-06-19 23:17:31 +02:00
Chiel92
9107b620f4
Fix previous commit
2015-06-19 13:58:09 +02:00
Chiel92
977500d769
Allow vim with +python3 as well.
2015-06-19 13:38:20 +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
f7e872f15a
Move window state recall outside TryFormatter
2015-06-12 14:29:33 +02:00
Chiel92
ba12dfc1b7
Add note about python support in README. Related to #54 .
2015-06-11 09:51:51 +02:00
Sergiy Borodych
716813ee2d
add check if vim has no support for python
...
it is necessary to verify the custom formatter
if no support show a notional warning message
2015-06-11 10:23:20 +03: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
ff8deba487
Cover jscs in README
2015-05-31 22:10:33 +02:00
Chiel92
f256d815e7
Automatically check for supertype formatters, as requested in #50
2015-05-31 21:56:00 +02:00
Chiel92
b553cd17de
Add possibility to extend $PATH for formatters. Update README.
2015-05-31 20:58:14 +02:00
Chiel92
c6e2dc21c1
Warn for out-of-date configuration
2015-05-30 21:00:16 +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
Chiel92
c16a053519
Take &verbose variable into account. Fix #48 .
2015-04-09 10:59:54 +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
Chiel92
b25b08fd5f
Add support for composite filetypes. Fix #37 .
2015-01-12 14:17:27 +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
Chiel92
bef62e459c
Merge branch 'typeArgument' of github.com:shanesmith/vim-autoformat into shanesmith-typeArgument
2014-06-30 09:22:11 +02:00
Shane Smith
5a17715cfc
Optional file type argument to Autoformat command
2014-06-29 15:30:05 -04: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