fzf_colors added to README

main
bhagwan 3 years ago
parent f9415a00fe
commit 6fc53bc42e

@ -217,7 +217,6 @@ require'fzf-lua'.setup {
hl_border = 'FloatBorder', -- window border color
},
-- fzf_bin = 'sk', -- use skim instead of fzf?
fzf_colors = nil, -- fzf '--color=' options
fzf_layout = 'reverse', -- fzf '--layout=' options
fzf_args = '', -- adv: fzf extra args, empty unless adv
fzf_binds = { -- fzf '--bind=' options
@ -232,6 +231,21 @@ require'fzf-lua'.setup {
'ctrl-a:toggle-all',
'ctrl-l:clear-query',
},
--[[ fzf_colors = { -- fzf '--color=' options
["fg"] = { "fg", "CursorLine" },
["bg"] = { "bg", "Normal" },
["hl"] = { "fg", "Comment" },
["fg+"] = { "fg", "Normal" },
["bg+"] = { "bg", "CursorLine" },
["hl+"] = { "fg", "Statement" },
["info"] = { "fg", "PreProc" },
["prompt"] = { "fg", "Conditional" },
["pointer"] = { "fg", "Exception" },
["marker"] = { "fg", "Keyword" },
["spinner"] = { "fg", "Label" },
["header"] = { "fg", "Comment" },
["gutter"] = { "bg", "Normal" },
}, ]]
preview_border = 'border', -- border|noborder
preview_wrap = 'nowrap', -- wrap|nowrap
preview_opts = 'nohidden', -- hidden|nohidden

@ -103,7 +103,6 @@ M.build_fzf_cli = function(opts, debug_print)
-- support the '--info=' flag
opts.fzf_info = utils._if(opts._is_skim, "--inline-info", "--info=inline")
end
opts.fzf_colors = M.create_fzf_colors(config.globals.fzf_colors)
local cli = string.format(
[[ %s %s --layout=%s --bind=%s --prompt=%s]] ..
@ -111,7 +110,7 @@ M.build_fzf_cli = function(opts, debug_print)
[[ --height=100%%]] ..
[[ %s %s %s %s %s %s]],
opts.fzf_args or config.globals.fzf_args or '',
opts.fzf_colors,
M.create_fzf_colors(opts.fzf_colors or config.globals.fzf_colors),
opts.fzf_layout or config.globals.fzf_layout,
utils._if(opts.fzf_binds, opts.fzf_binds,
vim.fn.shellescape(table.concat(config.globals.fzf_binds, ','))),

Loading…
Cancel
Save