From c3f8f3761dca7fd6b066b5c1356898a49a01e946 Mon Sep 17 00:00:00 2001 From: druckdev Date: Thu, 24 Dec 2020 02:00:42 +0100 Subject: [PATCH] vim: Use theme colors in fzf --- .config/vim/vimrc.d/50-aesthetics.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.config/vim/vimrc.d/50-aesthetics.vim b/.config/vim/vimrc.d/50-aesthetics.vim index 55c1bc4..ee48781 100644 --- a/.config/vim/vimrc.d/50-aesthetics.vim +++ b/.config/vim/vimrc.d/50-aesthetics.vim @@ -19,3 +19,22 @@ if (has('nvim')) highlight Normal guibg=NONE highlight NonText guibg=NONE endif + +if (get(g:, 'loaded_fzf')) + " Use theme colors in fzf + let g:fzf_colors = { + \ 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Comment'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Statement'], + \ 'info': ['fg', 'PreProc'], + \ 'border': ['fg', 'Ignore'], + \ 'prompt': ['fg', 'Conditional'], + \ 'pointer': ['fg', 'Exception'], + \ 'marker': ['fg', 'Keyword'], + \ 'spinner': ['fg', 'Label'], + \ 'header': ['fg', 'Comment'] + \ } +endif