Skip to content

Commit b089925

Browse files
committed
Add .editorconfig and fix formatting on some too-long lines
1 parent 30b64b8 commit b089925

File tree

6 files changed

+25
-6
lines changed

6 files changed

+25
-6
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_size = 2
7+
indent_style = space
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
[*.{md,py,vim,vroom}]
12+
max_line_length = 80
13+
14+
[*.{py,vim}]
15+
quote_type = single

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ helpfiles in the `doc/` directory. The helpfiles are also available via
3232
# Commands
3333

3434
Use `:FormatLines` to format a range of lines or use `:FormatCode` to format
35-
the entire buffer. Use `:NoAutoFormatBuffer` to disable current buffer formatting.
35+
the entire buffer. Use `:NoAutoFormatBuffer` to disable current buffer
36+
formatting.
3637

3738
# Usage example
3839

instant/flags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ call s:plugin.flags.autopep8_executable.AddCallback(
5555
" The path to the clang-format executable. String, list, or callable that
5656
" takes no args and returns a string or a list.
5757
call s:plugin.Flag('clang_format_executable', 'clang-format')
58-
" Invalidate cache of detected clang-format version when this is changed, regardless
59-
" of {value} arg.
58+
" Invalidate cache of detected clang-format version when this is changed,
59+
" regardless of {value} arg.
6060
call s:plugin.flags.clang_format_executable.AddCallback(
6161
\ maktaba#function#FromExpr('codefmt#clangformat#InvalidateVersion()'), 0)
6262

vroom/fish_indent.vroom

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ examples.
1717
You can format any buffer with fish_indent specifying the formatter explicitly.
1818

1919
@clear
20-
% if test 42 -eq $truth; echo '42 is truth'; else; echo 'I do not know what to believe'; end
20+
% if test 42 -eq $truth; echo '42 is truth'; else;
21+
| echo 'I do not know what to believe'; end
2122

2223
:FormatCode fish_indent
2324
! fish_indent .*2>.*

vroom/rustfmt.vroom

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ examples.
1515
:call codefmt#SetWhetherToPerformIsAvailableChecksForTesting(0)
1616

1717

18-
The rustfmt formatter expects the rustfmt executable to be installed on your system.
18+
The rustfmt formatter expects the rustfmt executable to be installed on your
19+
system.
1920

2021
% fn main(){println!("Hello World!");}
2122
:FormatCode rustfmt

vroom/zprint.vroom

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ examples.
1414

1515
:call codefmt#SetWhetherToPerformIsAvailableChecksForTesting(0)
1616

17-
The zprint formatter expects the zprint executable to be installed on your system.
17+
The zprint formatter expects the zprint executable to be installed on your
18+
system.
1819

1920
:FormatCode zprint
2021
! cd .* zprint .*

0 commit comments

Comments
 (0)