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
|
||||||
end, {
|
end, {
|
||||||
nargs = "*",
|
nargs = "*",
|
||||||
complete = function(ArgLead, CmdLine, ...)
|
complete = function(ArgLead, _, _)
|
||||||
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
|
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
|
||||||
return vim.tbl_filter(function(cmd)
|
return vim.tbl_filter(function(cmd)
|
||||||
return cmd:find(ArgLead, 1, true) == 1
|
return cmd:find(ArgLead, 1, true) == 1
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,8 @@ function M.setup(config)
|
||||||
|
|
||||||
local snippets = {}
|
local snippets = {}
|
||||||
|
|
||||||
for name, snippet in pairs(config.snippets or {}) do
|
for _, snippet in pairs(config.snippets or {}) do
|
||||||
if type(snippet) == "table" and snippet.trig then
|
|
||||||
table.insert(snippets, snippet)
|
table.insert(snippets, snippet)
|
||||||
else
|
|
||||||
table.insert(snippets, snippet)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if #snippets > 0 then
|
if #snippets > 0 then
|
||||||
|
|
|
||||||
3
vim.toml
3
vim.toml
|
|
@ -2,5 +2,8 @@
|
||||||
base = "lua52"
|
base = "lua52"
|
||||||
name = "vim"
|
name = "vim"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
lua52 = true
|
||||||
|
|
||||||
[vim]
|
[vim]
|
||||||
any = true
|
any = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue