builtin.fd -> builtin.find_files
This commit is contained in:
@@ -314,7 +314,7 @@ end
|
|||||||
|
|
||||||
-- TODO: Maybe just change this to `find`.
|
-- TODO: Maybe just change this to `find`.
|
||||||
-- Support `find` and maybe let peopel do other stuff with it as well.
|
-- Support `find` and maybe let peopel do other stuff with it as well.
|
||||||
builtin.fd = function(opts)
|
builtin.find_files = function(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
|
|
||||||
local fd_string = nil
|
local fd_string = nil
|
||||||
@@ -325,7 +325,7 @@ builtin.fd = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not fd_string then
|
if not fd_string then
|
||||||
print("You need to install fd")
|
print("You need to install fd or submit PR for different default file finder :)")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -347,6 +347,9 @@ builtin.fd = function(opts)
|
|||||||
}):find()
|
}):find()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Leave this alias around for people.
|
||||||
|
builtin.fd = builtin.find_files
|
||||||
|
|
||||||
-- TODO: This is partially broken, but I think it might be an nvim bug.
|
-- TODO: This is partially broken, but I think it might be an nvim bug.
|
||||||
builtin.buffers = function(opts)
|
builtin.buffers = function(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
|
|||||||
Reference in New Issue
Block a user