Skip to content

Commit 764c94e

Browse files
committed
Add linter/formatter files
Added a .luacheckrc file to tell luacheck to set vim as a read-only global. Added .editorconfig to codify code style choices. This allows users to hook into existing formatters and linters using e.g. nvim-conform, nvim-lint.
1 parent 42c959b commit 764c94e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[*]
2+
end_of_file = lf
3+
insert_final_newline = true
4+
5+
[*.lua]
6+
indent_size = 2
7+
indent_style = space
8+

.luacheckrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
read_globals = {
2+
"vim",
3+
}

0 commit comments

Comments
 (0)