dotfiles/config/lvim/lua/user/spectre.lua
2021-08-20 19:23:02 +03:00

20 lines
572 B
Lua

local M = {}
M.setup = function()
require("spectre").setup {
color_devicons = true,
highlights = { ui = "String", search = "DiffChange", replace = "DiffDelete" },
find_engine = {
["rg"] = {
cmd = "rg",
args = { "--color=never", "--no-heading", "--with-filename", "--line-number", "--column" },
options = {
["ignore-case"] = { value = "--ignore-case", icon = "[I]", desc = "ignore case" },
["hidden"] = { value = "--hidden", desc = "hidden file", icon = "[H]" },
},
},
},
}
end
return M