Skip to content

How to change background color for file list window or globablly as well as the search input? #1580

Answered by ibhagwan
jacobrreed asked this question in Q&A
Discussion options

You must be logged in to vote

Seems changing FzfLuaFzfNormal bg to any color other than none works, but not none which I would expect to make it transparent

That’s most likely because the highlight @none is cleared (I.e. no bg color) but for fzf colors, the bg color needs an actual value to be sent to fzf’s --color flag, for this (and also “gutter” there’s a better alternative, set the flag directly to -1:

:FzfLua files fzf_colors.bg=-1

If this is what you’re after add this to your setup (with the latest commit):

require('fzf-lua').setup({
  fzf_colors = {
    true, -- auto generate rest of fzf’s highlights?
    bg = '-1',
    gutter = '-1', -- I like this one too, try with and without
  }
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jacobrreed
Comment options

@ibhagwan
Comment options

Answer selected by jacobrreed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants