Skip to content

Instantly share code, notes, and snippets.

@umayr
Last active September 29, 2023 16:40
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umayr/8875b44740702b340430b610b52cd182 to your computer and use it in GitHub Desktop.
Save umayr/8875b44740702b340430b610b52cd182 to your computer and use it in GitHub Desktop.
Dracula color scheme for FZF

Dracula Color Scheme for FZF

Preview

if you're using fish shell, you can add this in your fish config:

let g:fzf_colors = {
\ 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Search'],
\ 'fg+': ['fg', 'Normal'],
\ 'bg+': ['bg', 'Normal'],
\ 'hl+': ['fg', 'DraculaOrange'],
\ 'info': ['fg', 'DraculaPurple'],
\ 'border': ['fg', 'Ignore'],
\ 'prompt': ['fg', 'DraculaGreen'],
\ 'pointer': ['fg', 'Exception'],
\ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] }

or you can simply pass this as arguments:

  λ fzf --color fg:255,bg:236,hl:84,fg+:255,bg+:236,hl+:215,info:141,prompt:84,spinner:212,pointer:212,marker:212

another way to use FZF_DEFAULT_OPTS:

export FZF_DEFAULT_OPTS='
  --color fg:255,bg:236,hl:84,fg+:255,bg+:236,hl+:215
  --color info:141,prompt:84,spinner:212,pointer:212,marker:212
'
@ArnaudValensi
Copy link

This is perfect, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment