diff options
author | James McCoy <jamessan@jamessan.com> | 2020-07-31 01:31:52 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2020-07-31 01:32:07 -0400 |
commit | 817522b2316d10d5139790646da0d0d20039459c (patch) | |
tree | d2776a1db6b6f5ec7c728e083acda8ce40449008 | |
parent | 82bfdbfe5c4eebd98ef59b52045ffd198e7ff389 (diff) | |
download | rneovim-817522b2316d10d5139790646da0d0d20039459c.tar.gz rneovim-817522b2316d10d5139790646da0d0d20039459c.tar.bz2 rneovim-817522b2316d10d5139790646da0d0d20039459c.zip |
luacheck: Enforce compatibility with Lua5.1
However, allow reading "jit" since we want to support running
differently under LuaJIT.
-rw-r--r-- | .luacheckrc | 5 |
1 files changed, 5 insertions, 0 deletions
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. |