The fzf_colors table controls the terminal colorscheme for fzf.
Options:
true: Automatically generate a colorscheme from Neovim's current colorscheme.- Custom Table: Define specific colors for fzf elements.
Custom Color Syntax:
- If the value is a string, it is passed raw (e.g.,
["fg"] = "underline" becomes --color fg:underline). - If the value is a table, it follows this convention:
[1] is the attribute (e.g., "fg", "bg"), [2] is the Neovim highlight group(s) (string or table), and [3+] are additional raw arguments.
Example of a fully loaded color option:
["fg"] = { "fg", { "NonExistentHl", "Comment" }, "underline", "bold" } results in --color fg:#010101:underline:bold (assuming Comment.fg is #010101).
fzf_colors = {
true, -- inherit fzf colors that aren't specified below
["fg"] = { "fg", "CursorLine" },
["bg"] = { "bg", "Normal" },
["hl"] = { "fg", "Comment" },
["fg+"] = { "fg", "Normal", "underline" },
["bg+"] = { "bg", { "CursorLine", "Normal" } },
["hl+"] = { "fg", "Statement" },
["info"] = { "fg", "PreProc" },
["prompt"] = { "fg", "Conditional" },
["pointer"] = { "fg", "Exception" },
["marker"] = { "fg", "Keyword" },
["spinner"] = { "fg", "Label" },
["header"] = { "fg", "Comment" },
["gutter"] = "-1",
}