Comments (6)
@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.
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.
Hmm, right. Guess we'll need to wait for a fix then ;)
from fzf-preview.vim.
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.
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.
That is actually a very good suggestion. I’ll do that. Thank you very much. :)
from fzf-preview.vim.
Related Issues (20)
- Document opening multiple files with TAB in preview window HOT 1
- [Feature Request] Open all files in fzf-preview HOT 2
- FZF search history feature request HOT 3
- [Question] $FZF_PREVIEW_PREVIEW_BAT_THEME has no effect? HOT 6
- Live grep HOT 3
- Ctags error
- Bunch of unknown characters showing on the first line HOT 2
- Support fzf_preview_command when doing ProjectGrep HOT 1
- Preview's highligt-line may not work in Vim HOT 4
- If the path of a file in the buffer list contains space, Bat preview fails
- FromResources aborts when any of the resources fail to load
- Issue when installing in Win 10
- bufferlines not working properly when working directory changed
- Feature request: add ability to use nerdfont.vim plugin to display filetype icons
- fish: Command substitutions not allowed HOT 1
- Use of ctags is hard coded as a constant HOT 1
- Older versions of Node throwing SyntaxError: Unexpected token '?' HOT 2
- Feature idea: include additional file search paths that are normally ignored by git / ripgrep
- Use project commands like `:FzfPreviewProjectFiles` and `:FzfPreviewProjectMruFiles` on non-git repos HOT 2
- :CocCommand fzf-preview.ProjectGrep . doesn't respect .gitignore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf-preview.vim.