feat: add file completion (#1163)
This commit is contained in:
committed by
GitHub
parent
84993e9e9f
commit
9066cbf3f7
@@ -62,7 +62,7 @@ function M.fn(node)
|
||||
|
||||
local containing_folder = get_containing_folder(node)
|
||||
|
||||
local input_opts = { prompt = "Create file ", default = containing_folder }
|
||||
local input_opts = { prompt = "Create file ", default = containing_folder, completion = "file" }
|
||||
|
||||
vim.ui.input(input_opts, function(new_file_path)
|
||||
if not new_file_path or new_file_path == containing_folder then
|
||||
|
||||
Reference in New Issue
Block a user