Skip to content

Commit 0373680

Browse files
committed
#1301 nvim uses LuaJIT 2.1 -> lua 5.1
1 parent c3b7be8 commit 0373680

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.luarc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
3+
"runtime.version" : "Lua 5.1",
34
"diagnostics": {
45
"globals": {
56
"vim": true
67
},
78
"disable": {
89
"lowercase-global": true,
9-
"missing-parameter": true
10+
"missing-parameter": true,
11+
"trailing-space": true
1012
}
1113
}
1214
}

lua/nvim-tree/diagnostics.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ local function from_coc()
9292

9393
for bufname, severity_list in pairs(diagnostics) do
9494
if not buffer_severity[bufname] then
95-
local severity = math.min(table.unpack(severity_list))
95+
local severity = math.min(unpack(severity_list))
9696
buffer_severity[bufname] = severity
9797
end
9898
end

0 commit comments

Comments
 (0)