luacheck: Enforce compatibility with Lua5.1

However, allow reading "jit" since we want to support running
differently under LuaJIT.
This commit is contained in:
James McCoy 2020-07-31 01:31:52 -04:00
parent 82bfdbfe5c
commit 817522b231
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
1 changed files with 5 additions and 0 deletions

View File

@ -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.