[nvim] fix: variable names conflicts

This commit is contained in:
David JULIEN 2022-05-01 14:42:05 +02:00
parent c29a53ac58
commit 8f73067a9b

View File

@ -74,10 +74,12 @@ end
-- Returns a snippet_node wrapped around an insert_node whose initial -- Returns a snippet_node wrapped around an insert_node whose initial
-- text value is set to the current date in the desired format. -- text value is set to the current date in the desired format.
local function date_input(fmt) local function date_input(fmt)
local fmt = fmt or "%Y-%m-%d" local format = fmt or "%Y-%m-%d"
return sn(nil, i(1, os.date(fmt))) return sn(nil, i(1, os.date(format)))
end end
local copy = utils.copy
-- snippets are added via ls.add_snippets(filetype, snippets[, opts]), where -- snippets are added via ls.add_snippets(filetype, snippets[, opts]), where
-- opts may specify the `type` of the snippets ("snippets" or "autosnippets", -- opts may specify the `type` of the snippets ("snippets" or "autosnippets",
-- for snippets that should expand directly after the trigger is typed). -- for snippets that should expand directly after the trigger is typed).