From 969e49c5775732cfc0b8a05c079147bc1bab2abf Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 10 Sep 2020 11:16:10 -0400 Subject: [PATCH] builtin.fd -> builtin.find_files --- lua/telescope/builtin.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 6e266cd..0819bea 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -314,7 +314,7 @@ end -- TODO: Maybe just change this to `find`. -- 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 {} local fd_string = nil @@ -325,7 +325,7 @@ builtin.fd = function(opts) end 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 end @@ -347,6 +347,9 @@ builtin.fd = function(opts) }):find() 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. builtin.buffers = function(opts) opts = opts or {}