Comments (6)
I'm having the same problem, as mentioned in #3362
from lazygit.
Just for the record I have COLORTERM=truecolor
setup inside tmux.
from lazygit.
I think I have the exact same problem...
A weird-ish yellow background for both additions and deletions when inside Tmux > lazygit. The regular git-delta diff colors work when lazygit runs outside of Tmux. Or when just using git diff (using delta) inside of Tmux.
Somehow that 3rd layer (Tmux > lazygit > delta) messes up the background colors from my theme.
from lazygit.
I don't know why I didn't think of this until now, but the solution I've found is to alias lazygit to use screen-256color
env in my .zshrc
/ .bashrc
:
alias lazygit='env TERM=screen-256color lazygit'
alias lg='lazygit'
from lazygit.
Thanks for the workaround 😁
I guess that also sheds some more light on the underlying issue.
Inside of Tmux $TERM
is usually set to tmux-256color
.
Delta works fine when run standalone inside of Tmux. At least when also setting a :Tc
"terminal override in Tmux like so:
set-option -ga terminal-overrides ",*-256color:Tc"
What could be going on inside of lazygit here that messes with this?
from lazygit.
I don't know why I didn't think of this until now, but the solution I've found is to alias lazygit to use
screen-256color
env in my.zshrc
/.bashrc
:alias lazygit='env TERM=screen-256color lazygit' alias lg='lazygit'
I don't know if lazygit
uses italics but screen-256color
does not support italics
from lazygit.
Related Issues (20)
- menuFromCommand support user input to filter menu
- show commits difference between 2 branches (git log branchA...branchB) HOT 2
- Lazygit exits when it's not in a Git repo HOT 2
- Commit hash color incorrect after merge with main HOT 1
- Files panel is empty when (many) new/changed files exist HOT 1
- Custom command and custom command HOT 1
- New "notARepository" strategy: recurse
- Add grouping for tags HOT 2
- Rewording last commit freezes when GPG passphrase is needed in CLI HOT 1
- Emojis in Commit Messages can Break UI Layout and Affect Displayed Diffs
- Crash when filtering by author HOT 1
- Recent repositories HOT 12
- Add ability to config regexp in commit message for links
- Support terminal hyperlinks to allow opening diff lines in editor when using delta pager HOT 1
- [Request] Create go template variable for selected items in files for example
- `nvim-remote` edit preset uses the hard coded `q` key
- Add an option to hide the detail of git merge
- implement github release
- Range select with more than just up/down arrows HOT 1
- `M` no longer in yellow to signify staged modifications/commit HOT 1
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 lazygit.