[nvim] fix: variable names conflicts
This commit is contained in:
parent
c29a53ac58
commit
8f73067a9b
@ -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).
|
||||||
|
Reference in New Issue
Block a user