`rg` will now be used over `ag` if it is available. This is because `rg` is a faster alternative reduces lag when searching larger codebases. `ag` is also now conditionally loaded if the command is available.
12 lines
270 B
Lua
12 lines
270 B
Lua
local utils = require "ivy.utils"
|
|
|
|
local rg = {
|
|
name = "RG",
|
|
command = "IvyRg",
|
|
description = "Run ripgrep to search for content in files",
|
|
keymap = "<leader>/",
|
|
items = utils.command_finder "rg --vimgrep --",
|
|
callback = utils.vimgrep_action(),
|
|
}
|
|
|
|
return rg
|