diff --git a/.luarc.json b/.luarc.json index 5c23d1be..5b4d6797 100644 --- a/.luarc.json +++ b/.luarc.json @@ -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 } } } diff --git a/lua/nvim-tree/diagnostics.lua b/lua/nvim-tree/diagnostics.lua index 6fb4009b..685a1c85 100644 --- a/lua/nvim-tree/diagnostics.lua +++ b/lua/nvim-tree/diagnostics.lua @@ -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