From 5a3fb8a012f9fcf777ba8deeae1c759362413efa Mon Sep 17 00:00:00 2001 From: James Trew <66286082+jamestrew@users.noreply.github.com> Date: Sun, 6 Aug 2023 17:07:24 -0400 Subject: [PATCH] Revert "add missing dependency warning for ripgrep (#2623)" (#2638) This reverts commit 49a03aa8442c336c91e189bac5e776f1a6b932ec. --- lua/telescope/builtin/__files.lua | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index 08c4335..339ede6 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -36,22 +36,6 @@ local escape_chars = function(string) }) end -local has_rg = function(picker_name) - if vim.fn.executable "rg" == 1 then - return true - end - - utils.notify(picker_name, { - msg = string.format( - "'ripgrep' is a required dependency for the %s picker. " - .. "Visit https://github.com/BurntSushi/ripgrep#installation for installation instructions.", - picker_name - ), - level = "ERROR", - }) - return false -end - local get_open_filelist = function(grep_open_files, cwd) if not grep_open_files then return nil @@ -109,10 +93,6 @@ end -- opts.search_dirs -- list of directory to search in -- opts.grep_open_files -- boolean to restrict search to open files files.live_grep = function(opts) - if not has_rg "live_grep" then - return - end - local vimgrep_arguments = opts.vimgrep_arguments or conf.vimgrep_arguments local search_dirs = opts.search_dirs local grep_open_files = opts.grep_open_files @@ -186,10 +166,6 @@ files.live_grep = function(opts) end files.grep_string = function(opts) - if not has_rg "grep_string" then - return - end - opts.cwd = opts.cwd and vim.fn.expand(opts.cwd) or vim.loop.cwd() local vimgrep_arguments = vim.F.if_nil(opts.vimgrep_arguments, conf.vimgrep_arguments) local word