lunacookies / vim-colors-xcode

Xcode 11’s dark and light colourschemes for Vim
ISC License
607 stars 60 forks source link

Airline doesn't look right in macOS' terminal #29

Closed H-111-di closed 1 year ago

H-111-di commented 3 years ago

How it looks like now

Do I need to need to specifically put "let g:airline_theme='xcodelight/dark'" in my init.vim?

lunacookies commented 3 years ago

Hmm, that image as well as the H-111-di/Pics repo it is contained both 404 for me. Maybe the repo’s set to private?

The built-in Terminal.app on macOS has a number of problems relating to colour, including a lack of True Colour support. This in particular makes it unusable with vim-colors-xcode if you want Vim’s colours at all close to their intended values.

H-111-di commented 3 years ago

Hmm, that image as well as the H-111-di/Pics repo it is contained both 404 for me. Maybe the repo’s set to private?

The built-in Terminal.app on macOS has a number of problems relating to colour, including a lack of True Colour support. This in particular makes it unusable with vim-colors-xcode if you want Vim’s colours at all close to their intended values.

Sorry, I've fixed the visibility problem...

Actually it also not looks so right under True Color mode... I left my comment under another issue about it.https://github.com/arzg/vim-colors-xcode/issues/24

lunacookies commented 3 years ago

It’s definitely strange that it looks bad in Alacritty with set termguicolors. Would you mind posting your vimrc so I can take a look?

H-111-di commented 3 years ago

Of course not, and so sorry for late reply.

The output of 24bit color tester and the neovim interface looks like this:

In Alacritty: In alacritty nvim alacritty

In terminal.app: In terminal nvim terminal

And here is my neovim setting: init.vim & My zshrc: .zshrc

lunacookies commented 3 years ago

Sorry for the long delay! I believe that you need to set termguicolors before setting a colour scheme. Take a look at this demo running in Alacritty:

https://user-images.githubusercontent.com/31783266/123496585-20cc3d00-d66c-11eb-8618-d47e5e85caeb.mov