mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
20 lines
572 B
Lua
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
|