fix(create-file): pass file in parameter

This commit is contained in:
kiyan 2022-07-18 14:34:10 +02:00
parent 1ee6a3ea65
commit 1018a83e10

View File

@ -21,11 +21,11 @@ local function create_file(file)
if utils.file_exists(file) then
vim.ui.select({ "y", "n" }, { prompt = file .. " already exists. Overwrite?" }, function(choice)
if choice == "y" then
create_and_notify()
create_and_notify(file)
end
end)
else
create_and_notify()
create_and_notify(file)
end
end