yuki-yano/fzf-preview.vim

Is it possible to change the highlight background of the cursor line?

judewang opened this issue · 2 comments

Problems summary

I've chosen Dracula theme as my syntax highlight theme of bat. When I run :FzfPreviewProjectGrep and search for the keyword, the cursor line background will be the same color as one of the color from the specific theme. That made it hard to read the content of the line that matched. If I use the :Rg command that fzf.vim provided, the cursor line has different background color.

Expected

I want to find a way to customize the highlight background of cursor line.

Environment Information

  • fzf-preview version (package.json): v2.0.8

  • OS: macOS with M1 chip

  • Vim/Neovim version: v0.5.0-dev+b535575

Provide a minimal init.vim

" call plug#begin('~/.vim/plugged')
" Plug 'junegunn/fzf'
" Plug 'junegunn/fzf.vim'
" Plug 'yuki-ycino/fzf-preview.vim', { 'branch': 'release/remote', 'do': ':UpdateRemotePlugins' }
" Plug 'ryanoasis/vim-devicons'
" call plug#end()

Screenshot

CleanShot 2021-02-02 at 13 41 01
CleanShot 2021-02-02 at 13 47 35

The grep preview of fzf-preview uses the one specified in the FZF_PREVIEW_PREVIEW_BAT_THEME environment variable.

Do you have FZF_PREVIEW_BAT_THEME set in init.vim?

@yuki-yano Thank you, this solved the issue.