fix selene lints
This commit is contained in:
parent
8d0697b99a
commit
2238022a24
3 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue