From 669561e21073e6efafddda25ba3ace69fb43819e Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 31 Jan 2023 09:44:13 +0100 Subject: feat: apply stylua --- .luacheckrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .luacheckrc (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..f88df1f --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,24 @@ +-- Rerun tests only if their modification time changed. +cache = true + +std = luajit +codes = true + +self = false + +-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html +ignore = { + "212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off. + "122", -- Indirectly setting a readonly global +} + +globals = { + "P", + "R", + "Reload", +} + +-- Global objects defined by the C code +read_globals = { + "vim", +} -- cgit v1.2.3