We now have a concept of a 'backend' this is the same as the current sorters and finders but with added info like the keymap so they can all be registered as one. This will allow us to split our backends into modues so we can better maintain then.
12 lines
252 B
Lua
12 lines
252 B
Lua
local utils = require "ivy.utils"
|
|
|
|
local ag = {
|
|
name = "AG",
|
|
command = "IvyAg",
|
|
description = "Run ag to search for content in files",
|
|
keymap = "<leader>/",
|
|
items = utils.command_finder "ag",
|
|
callback = utils.vimgrep_action(),
|
|
}
|
|
|
|
return ag
|