Skip to content

Commit 4340598

Browse files
committed
chore: sync EmmyLuaCodeStyle settings between .editorconfig and .luarc.json
1 parent 6709463 commit 4340598

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ end_of_line = lf
77
[nvim-tree-lua.txt]
88
max_line_length = 78
99

10+
# keep these in sync with .luarc.json so that lua-language-server may check/apply standalone
1011
[*.lua]
1112
indent_style = space
1213
max_line_length = 140

.luarc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
"${3rd}/luv/library"
88
]
99
},
10+
"format": {
11+
"defaultConfig": {
12+
"indent_style": "space",
13+
"max_line_length": "140",
14+
"indent_size": "2",
15+
"continuation_indent": "2",
16+
"quote_style": "double",
17+
"call_arg_parentheses": "always",
18+
"space_before_closure_open_parenthesis": "false",
19+
"align_continuous_similar_call_args": "true"
20+
}
21+
},
1022
"diagnostics": {
1123
"libraryFiles": "Disable",
1224
"globals": [],

0 commit comments

Comments
 (0)