#1301 nvim uses LuaJIT 2.1 -> lua 5.1

This commit is contained in:
Alexander Courtis 2022-05-29 12:29:40 +10:00
parent c3b7be8d19
commit 0373680819
2 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version" : "Lua 5.1",
"diagnostics": {
"globals": {
"vim": true
},
"disable": {
"lowercase-global": true,
"missing-parameter": true
"missing-parameter": true,
"trailing-space": true
}
}
}

View File

@ -92,7 +92,7 @@ local function from_coc()
for bufname, severity_list in pairs(diagnostics) do
if not buffer_severity[bufname] then
local severity = math.min(table.unpack(severity_list))
local severity = math.min(unpack(severity_list))
buffer_severity[bufname] = severity
end
end