fix selene lints

This commit is contained in:
Barrett Ruth 2025-09-12 00:11:37 -05:00
parent 8d0697b99a
commit 2238022a24
3 changed files with 6 additions and 7 deletions

View file

@ -285,7 +285,7 @@ function M.setup(user_config)
end
end, {
nargs = "*",
complete = function(ArgLead, CmdLine, ...)
complete = function(ArgLead, _, _)
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
return vim.tbl_filter(function(cmd)
return cmd:find(ArgLead, 1, true) == 1

View file

@ -8,12 +8,8 @@ function M.setup(config)
local snippets = {}
for name, snippet in pairs(config.snippets or {}) do
if type(snippet) == "table" and snippet.trig then
table.insert(snippets, snippet)
else
table.insert(snippets, snippet)
end
for _, snippet in pairs(config.snippets or {}) do
table.insert(snippets, snippet)
end
if #snippets > 0 then

View file

@ -2,5 +2,8 @@
base = "lua52"
name = "vim"
[features]
lua52 = true
[vim]
any = true