File tree Expand file tree Collapse file tree 4 files changed +18
-16
lines changed Expand file tree Collapse file tree 4 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,17 @@ root = true
4
4
insert_final_newline = true
5
5
end_of_line = lf
6
6
7
+ [nvim-tree-lua.txt ]
8
+ max_line_length = 78
9
+
7
10
[* .lua ]
8
11
indent_style = space
12
+ max_line_length = 140
9
13
indent_size = 2
10
14
11
- [nvim-tree-lua.txt ]
12
- max_line_length = 78
15
+ # EmmyLuaCodeStyle specific, see
16
+ # https://github.com/CppCXY/EmmyLuaCodeStyle/blob/master/lua.template.editorconfig
17
+ continuation_indent = 2
18
+ quote_style = double
19
+ call_arg_parentheses = always
20
+ space_before_closure_open_parenthesis = false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Following are used during CI and strongly recommended during local development.
10
10
11
11
Lint: [ luacheck] ( https://github.com/lunarmodules/luacheck/ )
12
12
13
- Style: [ StyLua ] ( https://github.com/JohnnyMorganz/StyLua )
13
+ Style: [ EmmyLuaCodeStyle ] ( https://github.com/CppCXY/EmmyLuaCodeStyle ) ( ` CodeCheck ` )
14
14
15
15
Language server: [ luals] ( https://luals.github.io )
16
16
@@ -34,14 +34,14 @@ make lint
34
34
35
35
## style
36
36
37
- 1 . Runs stylua using ` .stylua.toml ` settings
37
+ 1 . Runs CodeCheck using ` .editorconfig ` settings
38
38
1 . Runs ` scripts/doc-comments.sh ` to validate annotated documentation
39
39
40
40
``` sh
41
41
make style
42
42
```
43
43
44
- You can automatically fix stylua issues via:
44
+ You can automatically fix ` CodeCheck ` issues via:
45
45
46
46
``` sh
47
47
make style-fix
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ all: lint style check
5
5
#
6
6
lint : luacheck
7
7
8
- style : stylua style-doc
8
+ style : style-check style-doc
9
9
10
10
check : luals
11
11
@@ -15,8 +15,8 @@ check: luals
15
15
luacheck :
16
16
luacheck -q lua
17
17
18
- stylua :
19
- stylua lua --check
18
+ style-check :
19
+ CodeFormat check --config .editorconfig --diagnosis-as-error --workspace lua
20
20
21
21
style-doc :
22
22
scripts/doc-comments.sh
28
28
# fixes
29
29
#
30
30
style-fix :
31
- stylua lua
31
+ CodeFormat format --config .editorconfig --workspace lua
32
32
33
33
#
34
34
# utility
@@ -43,5 +43,5 @@ help-check: help-update
43
43
git diff --exit-code doc/nvim-tree-lua.txt
44
44
45
45
46
- .PHONY : all lint style check luacheck stylua style-doc luals style-fix help-update help-check
46
+ .PHONY : all lint style check luacheck style-check style-doc luals style-fix help-update help-check
47
47
You can’t perform that action at this time.
0 commit comments