Closed gregorias closed 1 year ago
Hi Grzegorz, thanks for the PR. How come you prefer this over just allowing the user to set the colors in FZF_DEFAULT_OPTS
?
Hi Grzegorz, thanks for the PR. How come you prefer this over just allowing the user to set the colors in
FZF_DEFAULT_OPTS
?
I prefer this, because setting FZF_DEFAULT_OPTS
overrides the defaults that fzf.fish provides. This means that to keep those defaults, I would need to copy them into my own config and hope they don't change. Since the only thing I need is to set colors, it's a more maintainable set up for me if there's a configuration knob for that.
I prefer this, because setting FZF_DEFAULT_OPTS overrides the defaults that fzf.fish provides. This means that to keep those defaults, I would need to copy them into my own config and hope they don't change. Since the only thing I need is to set colors, it's a more maintainable set up for me if there's a configuration knob for that.
Ah that makes sense! I've long had on my todo list a way to set global fzf opts for all of fzf.fish and haven't had time to get to it. Would that resolve this need? I really don't want to make a fzf.fish flag that merely maps to a simple fzf flag.
I would need to copy them into my own config and hope they don't change
Btw, I promise FZF_DEFAULT_OPTS
won't change, and even if it does it won't be a setting that is significant. Hope that'll allow you to just put it in there for now while I get working on the global fzf.fish opts.
Ah that makes sense! I've long had on my todo list a way to set global fzf opts for all of fzf.fish and haven't had time to get to it. Would that resolve this need? I really don't want to make a fzf.fish flag that merely maps to a simple fzf flag.
Sounds reasonable to me. I'll just override FZF_DEFAULT_OPTS then. Feel free to close this PR.
Thanks.
Thanks for opening this issue and giving me insight into why people might not want to override FZF_DEFAULT_OPTS! When I get to it, I'll probably remove setting a default for it and just suggest it in the docs. It's definitely out of scope for the plugin to be messing with fzf globally.
fzf.nvim already relies on highlighting done by fd and bat, but not all colors are set by them. This setting allows people to configure FZF colors not affected by fd or bat while keeping default options fzf.nvim provides.