GithubHelp home page GithubHelp logo

Comments (6)

metalelf0 avatar metalelf0 commented on May 25, 2024

@NicolaiRuckel you can also do :let g:fzf_preview_command = 'bat --color=always --style=grid --theme=GitHub {-1}', as stated in the readme. Sub GitHub with any light theme of your choice.

from fzf-preview.vim.

NicolaiRuckel avatar NicolaiRuckel commented on May 25, 2024

Thank you for your suggestion. I did this but for FzfPreviewProjectGrep the corresponding option is let g:fzf_preview_grep_preview_cmd and its default value is expand('<sfile>:h:h') . '/bin/preview_fzf_grep'. I tried to replace it with bat but this gives some errors.

from fzf-preview.vim.

metalelf0 avatar metalelf0 commented on May 25, 2024

Hmm, right. Guess we'll need to wait for a fix then ;)

from fzf-preview.vim.

NicolaiRuckel avatar NicolaiRuckel commented on May 25, 2024

Maybe the base16 theme would be a more sensible default?
See sharkdp/bat#490

Actually, it doesn’t work even if you set your terminal colors in nvim.

from fzf-preview.vim.

yuki-yano avatar yuki-yano commented on May 25, 2024

One workaround is to copy and rewrite the preview script to an executable location.
Set the path to g:fzf_preview_grep_preview_cmd and preview with the modified script.

I may remove the theme specification from the preview script.
In that case, you can use any theme by setting the BAT_THEME environment variable.
let $BAT_THEME = 'GitHub'

from fzf-preview.vim.

NicolaiRuckel avatar NicolaiRuckel commented on May 25, 2024

That is actually a very good suggestion. I’ll do that. Thank you very much. :)

from fzf-preview.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.