Skip to content
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

Can I change default color? #11

Open
luathn opened this issue Dec 29, 2020 · 2 comments
Open

Can I change default color? #11

luathn opened this issue Dec 29, 2020 · 2 comments

Comments

@luathn
Copy link
Contributor

luathn commented Dec 29, 2020

By default fzf uses vim scheme color. In fzf-tags, you set color in code.
Is there any trick for me to change the color? Thank you!

2020-12-29_103844-810x475_scrot
2020-12-29_103900-810x475_scrot

@luathn luathn changed the title Change default color? Can I change default color? Dec 30, 2020
@zackhsi
Copy link
Owner

zackhsi commented Jan 1, 2021

For now, they are hardcoded to your terminal's magenta/green/red.

if has_key(a:tag_dict, 'filename')
call add(components, s:magenta(a:tag_dict['filename']))
endif
if has_key(a:tag_dict, 'class')
call add(components, s:green(a:tag_dict['class']))
endif
if has_key(a:tag_dict, 'cmd')
call add(components, s:red(a:tag_dict['cmd']))
endif

I'm not too familiar, but I believe it would be best if we respected all of the normal fzf color configuration, i.e. g:fzf_colors.

This issue looks like a good starting point for research.

@luathn
Copy link
Contributor Author

luathn commented Jan 4, 2021

@zackhsi Thank you. I'll research and create PR if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants