Skip to content

Commit c9f0a37

Browse files
authored
Merge pull request #296 from michaelb/dev
Dev
2 parents a29d7b1 + 5800ca1 commit c9f0a37

File tree

15 files changed

+806
-553
lines changed

15 files changed

+806
-553
lines changed

.editorconfig

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
2+
# see https://github.com/CppCXY/EmmyLuaCodeStyle
3+
[*.lua]
4+
# [basic]
5+
6+
# optional space/tab
7+
indent_style = space
8+
# if indent_style is space, this is valid
9+
indent_size = 4
10+
# if indent_style is tab, this is valid
11+
tab_width = 4
12+
# none/single/double
13+
quote_style = none
14+
15+
continuation_indent = 4
16+
## extend option
17+
# continuation_indent.before_block = 4
18+
# continuation_indent.in_expr = 4
19+
# continuation_indent.in_table = 4
20+
21+
# this mean utf8 length , if this is 'unset' then the line width is no longer checked
22+
# this option decides when to chopdown the code
23+
max_line_length = 120
24+
25+
# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
26+
# in neovim the value 'auto' is not a valid option, please use 'unset'
27+
end_of_line = auto
28+
29+
# none/ comma / semicolon / only_kv_colon
30+
table_separator_style = none
31+
32+
#optional keep/never/always/smart
33+
trailing_table_separator = keep
34+
35+
# keep/remove/remove_table_only/remove_string_only
36+
call_arg_parentheses = keep
37+
38+
detect_end_of_line = false
39+
40+
# this will check text end with new line
41+
insert_final_newline = true
42+
43+
# [space]
44+
space_around_table_field_list = true
45+
46+
space_before_attribute = true
47+
48+
space_before_function_open_parenthesis = false
49+
50+
space_before_function_call_open_parenthesis = false
51+
52+
space_before_closure_open_parenthesis = true
53+
54+
# optional always/only_string/only_table/none
55+
# or true/false
56+
space_before_function_call_single_arg = always
57+
## extend option
58+
## always/keep/none
59+
# space_before_function_call_single_arg.table = always
60+
## always/keep/none
61+
# space_before_function_call_single_arg.string = always
62+
63+
space_before_open_square_bracket = false
64+
65+
space_inside_function_call_parentheses = false
66+
67+
space_inside_function_param_list_parentheses = false
68+
69+
space_inside_square_brackets = false
70+
71+
# like t[#t+1] = 1
72+
space_around_table_append_operator = false
73+
74+
ignore_spaces_inside_function_call = false
75+
76+
# detail number or 'keep'
77+
space_before_inline_comment = 1
78+
79+
# convert '---' to '--- ' or '--' to '-- '
80+
space_after_comment_dash = false
81+
82+
# [operator space]
83+
space_around_math_operator = true
84+
# space_around_math_operator.exponent = false
85+
86+
space_after_comma = true
87+
88+
space_after_comma_in_for_statement = true
89+
90+
# true/false or none/always/no_space_asym
91+
space_around_concat_operator = true
92+
93+
space_around_logical_operator = true
94+
95+
# true/false or none/always/no_space_asym
96+
space_around_assign_operator = true
97+
98+
# [align]
99+
100+
align_call_args = false
101+
102+
align_function_params = true
103+
104+
align_continuous_assign_statement = true
105+
106+
align_continuous_rect_table_field = true
107+
108+
align_continuous_line_space = 2
109+
110+
align_if_branch = false
111+
112+
# option none / always / contain_curly/
113+
align_array_table = true
114+
115+
align_continuous_similar_call_args = false
116+
117+
align_continuous_inline_comment = true
118+
# option none / always / only_call_stmt
119+
align_chain_expr = none
120+
121+
# [indent]
122+
123+
never_indent_before_if_condition = false
124+
125+
never_indent_comment_on_if_branch = false
126+
127+
keep_indents_on_empty_lines = false
128+
129+
allow_non_indented_comments = false
130+
# [line space]
131+
132+
# The following configuration supports four expressions
133+
# keep
134+
# fixed(n)
135+
# min(n)
136+
# max(n)
137+
# for eg. min(2)
138+
139+
line_space_after_if_statement = keep
140+
141+
line_space_after_do_statement = keep
142+
143+
line_space_after_while_statement = keep
144+
145+
line_space_after_repeat_statement = keep
146+
147+
line_space_after_for_statement = keep
148+
149+
line_space_after_local_or_assign_statement = keep
150+
151+
line_space_after_function_statement = fixed(2)
152+
153+
line_space_after_expression_statement = keep
154+
155+
line_space_after_comment = keep
156+
157+
line_space_around_block = fixed(1)
158+
# [line break]
159+
break_all_list_when_line_exceed = false
160+
161+
auto_collapse_lines = false
162+
163+
break_before_braces = false
164+
165+
# [preference]
166+
ignore_space_after_colon = false
167+
168+
remove_call_expression_list_finish_comma = false
169+
# keep / always / same_line / replace_with_newline / never
170+
end_statement_with_semicolon = keep

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.3.16
2+
- Fix nvim-notify timeout and add render style option
3+
- Filter ANSI escape code by default
4+
15
## v1.3.15
26
- Add PlantUML support (ascii output)
37
- Basic user input support

0 commit comments

Comments
 (0)