fix(create-file): pass file in parameter
This commit is contained in:
parent
1ee6a3ea65
commit
1018a83e10
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user