From 764c94ee5284710fa4a2ed3201d75123af8465a4 Mon Sep 17 00:00:00 2001 From: Tom George Date: Mon, 4 Aug 2025 13:26:57 -0400 Subject: [PATCH] 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. --- .editorconfig | 8 ++++++++ .luacheckrc | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 .editorconfig create mode 100644 .luacheckrc diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5ac29c5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +[*] +end_of_file = lf +insert_final_newline = true + +[*.lua] +indent_size = 2 +indent_style = space + diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..4f83aba --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,3 @@ +read_globals = { + "vim", +}