-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Support transparent gutter via highlight group #1306
Comments
Fzf runs in a neovim terminal, the gutter color needs to be translated into an ansi escape sequence and Why don’t you set your |
Thanks! I think I can make that work with the vim.g variable. |
Right, sorry. require('fzf-lua').setup {
fzf_colors = {
["gutter"] = "-1",
}
} And The only way to achieve what I want is if I set all of the colors through setup ( require('fzf-lua').setup {
fzf_colors = {
["fg"] = hl.get("FzfLuaNormal").fg.hex,
["bg"] = hl.get("FzfLuaNormal").bg.hex,
["fg+"] = hl.get("FzfLuaFzfCursorLine").fg.hex,
["bg+"] = hl.get("FzfLuaFzfCursorLine").bg.hex,
["hl+"] = hl.get("FzfLuaFzfMatch").fg.hex,
-- ["border"] = hl.get("FzfLuaFzfBorder").fg.hex,
["scrollbar"] = hl.get("FzfLuaFzfScrollbar").fg.hex,
["separator"] = hl.get("FzfLuaFzfSeparator").fg.hex,
["gutter"] = "-1",
["header"] = hl.get("FzfLuaFzfHeader").fg.hex,
["info"] = colors.fg4.hex,
["pointer"] = hl.get("FzfLuaFzfPointer").fg.hex,
["marker"] = hl.get("FzfLuaFzfMarker").fg.hex,
-- ["spinner"] = hl.get("FzfLuaFzfSpinner").fg.hex,
["prompt"] = hl.get("FzfLuaFzfPrompt").fg.hex,
["query"] = hl.get("FzfLuaFzfQuery").fg.hex,
}
} but as this is for a colorscheme, it feels a bit forced. I would prefer to only use highlight groups. Please also note, that in the example above, So I guess I'm okay using the workaround above for now, but it would be nicer if setting |
Set the first index to true and you’ll get both the generated theme and override: require('fzf-lua').setup {
fzf_colors = {
true, -- this
["gutter"] = "-1",
}
} This is mentioned in the fzf_colors part of the README under the default options, I should probably add it at the bottom fzf_colors part of the README too. |
That's nicer, thanks for your help! |
I’m thinking a better option, if the resulting color is none set it to |
Have you RTFM'd?
Feature Request
I'm currently in the process of adding support for Fzf-lua to my colorscheme and noticed that setting the
bg
property ofFzfLuaFzfGutter
to"NONE"
does not make it transparent. Setting it to a solid color works fine, however.Is this something that could be supported in the future?
The text was updated successfully, but these errors were encountered: