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
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
1e20517276
removed obsolete reset of formatprg
2013-08-18 15:57:04 +02: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
f5e60b5266
compatibilty with default gq functionality
2013-03-26 23:03:15 +01: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
7f461bc84d
test
2013-03-15 20:59:46 +01:00
Chiel92
1b7a90437c
tried to remap gq, only little success
2013-03-14 18:50:31 +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
993d2c6325
make sure cursor stays at position when reindenting
2013-03-10 20:03:48 +01:00
Chiel92
c792912358
Perform auto indentation when no formatprg available
2013-03-10 19:51:39 +01:00
Chiel92
9755bf73d7
defaults converted to one-liners and readme update
2013-03-09 19:52:12 +01:00
Chiel92
5b547a33dd
better error messages
2013-03-09 19:41:31 +01:00
Chiel92
2623f9b650
readme update and xhtml support
2013-03-09 19:24:05 +01:00
Chiel92
945904e599
phpCB out of support, for risk of screwing up code
2013-03-09 17:42:59 +01:00
Chiel92
e3e6694087
bugfix in formatters/ detection
2013-03-09 17:35:24 +01:00
Chiel92
5692fb633d
check for user config before setting defaults
2013-03-09 11:52:11 +01:00
Chiel92
0031e11097
defaults file renamed
2013-03-08 21:15:44 +01:00
Chiel92
005835befe
formatprg defaults changed, samples added and renamed
2013-03-08 18:24:10 +01:00
Chiel92
f6d2a3f463
defaults changed
2013-03-08 17:11:53 +01:00
Chiel92
3b0a783077
js-beautify support as a bundle, and tab width 4 default
2013-03-08 17:02:22 +01:00
Chiel92
d2ef1ef619
bla
2013-03-08 16:46:54 +01:00
Chiel92
25ca89e65e
configuration globals correctly loaded on ft change
...
javascript formatprg is broken
2013-03-01 15:06:13 +01:00
Chiel92
72615011ba
bla
2013-02-28 15:06:25 +01:00
Chiel92
9a1a52c946
ftplugin scripts replaced with formatprgdefaults
2013-02-26 18:21:29 +01:00
Chiel92
1b08973e28
minor changes
2013-02-25 12:31:28 +01:00
Chiel92
51f3b5f563
prototype on-the-fly codeformatting
2013-02-11 09:22:23 +01:00
Chiel92
546e181dab
formatprg only set when b:formatprg exists
2013-02-08 20:58:43 +01:00
Chiel92
a4724c5dac
issue 4 is neatly fixed, by storing the formatprg in a buffer local
...
variable, and reloading it on BufEnter,WinEnter
2013-02-08 20:05:52 +01:00
Chiel92
0a1f41399d
2nd attempt to solve issue #4 more nicely
2013-01-26 21:13:50 +01:00
Chiel92
676aec0353
bugfix and readme improvement
2012-12-02 19:55:32 +01:00
Chiel92
e94180e2f4
formatter finding implemented
2012-12-02 17:12:49 +01:00
Chiel92
c23058a4dd
annoying warning fixed
2012-12-02 15:33:03 +01:00
Chiel92
333e88bdeb
command added
2012-12-02 15:27:50 +01:00
Chiel92
19b7a6437b
python support and no error into buffer when formatter not installed
2012-12-01 14:06:28 +01:00