#1301 nvim uses LuaJIT 2.1 -> lua 5.1
This commit is contained in:
parent
c3b7be8d19
commit
0373680819
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user