fix selene lints
This commit is contained in:
parent
8d0697b99a
commit
2238022a24
3 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
3
vim.toml
3
vim.toml
|
|
@ -2,5 +2,8 @@
|
|||
base = "lua52"
|
||||
name = "vim"
|
||||
|
||||
[features]
|
||||
lua52 = true
|
||||
|
||||
[vim]
|
||||
any = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue