fix: resolve linting warnings

This commit is contained in:
Barrett Ruth 2026-02-03 21:19:02 -05:00
parent 017c1873b7
commit 76506cd566
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"runtime.version": "Lua 5.1",
"runtime.path": ["lua/?.lua", "lua/?/init.lua"],
"diagnostics.globals": ["vim"],
"diagnostics.globals": ["vim", "jit"],
"workspace.library": ["$VIMRUNTIME/lua", "${3rd}/luv/library"],
"workspace.checkThirdParty": false,
"completion.callSnippet": "Replace"

View file

@ -1,7 +1,7 @@
local codes = require('http-codes.codes')
local cached_items = nil
local function codes_to_snack_items(codes)
local function codes_to_snack_items(codes_map)
if cached_items then
return cached_items
end
@ -9,7 +9,7 @@ local function codes_to_snack_items(codes)
local items = {}
local idx = 1
for status, _ in pairs(codes) do
for status, _ in pairs(codes_map) do
table.insert(items, { idx = idx, text = status })
idx = idx + 1
end