From 817522b2316d10d5139790646da0d0d20039459c Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 31 Jul 2020 01:31:52 -0400 Subject: luacheck: Enforce compatibility with Lua5.1 However, allow reading "jit" since we want to support running differently under LuaJIT. --- .luacheckrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.luacheckrc b/.luacheckrc index 9c8bddb88e..a628daed80 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,5 +1,10 @@ -- vim: ft=lua tw=80 +stds.nvim = { + read_globals = { "jit" } +} +std = "lua51+nvim" + -- Ignore W211 (unused variable) with preload files. files["**/preload.lua"] = {ignore = { "211" }} -- Allow vim module to modify itself, but only here. -- cgit