-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bat not using local theme when passed as a flag inside vim #634
Comments
This is actually because neovim's terminal is incorrectly detected as not supporting true color (at least for me). I am working on a solution. |
Neovim unsets the COLORTERM environment variable which is the only way in which bat detectes true color. As a workaround put something like
in your bashrc/zshrc/etc. |
Wow. Awesome. That totally worked. I'll leave it to you to close (dunno if you were looking into the core issue) but this works for me. If there is any interest, I'd be happy to contribute some other themes and languages. Specifically, on the web dev front, scss support through Sass is probably something most people would enjoy on top of the CSS suite bat already supports. |
Thank you for the feedback! [...]
Thank you for looking into this!
Oh.. why would they do that? Isn't their "terminal emulator" running inside another terminal emulator which does the actual rendering?
Another workaround could be to run
I would say that the core issue is not with
Sounds great. Let's discuss this in another ticket. |
Hm. If the |
Confirmed. They were so saturated I thought it was a different theme, but it looks like its working. |
This is my workaround for now to avoid editing the let $FZF_PREVIEW_COMMAND="COLORTERM=truecolor bat --style=numbers --color=always --line-range :500 {}" |
Hi there. Thank you for this fantastic repo. As a UI designer who loves terminal tooling and Vim (all dozen of us!) this project has been really exciting for theming and I'd love to contribute some.
I'm not certain this is the right place to ask the issue, but figured I'd give it a shot. My issue is that bat doesn't seem to respect custom locally built themes when called with a
--theme="myTheme"
flag inside vim (specifically I'm using Neovim)I'm using Bat, and following the readme created a custom theme called "horizon". It works perfectly in my terminal and shows up correctly in my Fish setup. I call it from a
bat/bat.config
file.In VIM, I use bat along with FZF to to provide dynamic previews to my searching.
Bat works here, but it doesn't properly pick up my custom theme. Surprisingly, when I use any of the provided themes in that
--theme
flag, they load fine. For example, if I change it to1337
I will get the correct response. However, using my custom one, again will just fall back to the default bat themeHere is a copy of my theme file.
The text was updated successfully, but these errors were encountered: