Skip to content
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

Cannot change theme from default #2567

Open
mdeguzis opened this issue Aug 16, 2022 · 9 comments
Open

Cannot change theme from default #2567

mdeguzis opened this issue Aug 16, 2022 · 9 comments

Comments

@mdeguzis
Copy link

mdeguzis commented Aug 16, 2022

environment

  • vim: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 12 2022 11:45:03)
  • vim-airline: 0.12
  • OS: RHEL
  • Have you reproduced with a minimal vimrc: yes
  • What is your airline configuration: none, just trying to set theme
    if you are using terminal:
  • terminal: zsh
  • $TERM variable: xterm-256color
  • color configuration (:set t_Co?): I have set t_Co=256 in ~/.vimrc at the top

First, off, great work with the non-Python lightweight project! I'm not sure why, but changing to any theme does nothing. I load the default theme just fine:

image

When I type :AirlineTheme, I get a theme I set, such as "bubblebum".

I noticed if I use /usr/bin/vim instead of /some/other/bin/vim, the colors change. I don't get the same icons and such, but that's at least different. The later vim is one on the server I am on and newer:

vim version outputs:

Below is my vimrc. Let me know if there's any more information I can provide. I can also load and use https://github.com/powerline/powerline fine, so it must be how things are set here in contrast.

vimrc: https://gist.github.com/mdeguzis/d5f690b3c8fe86ae5fee72f420624389

@chrisbra
Copy link
Member

Sorry, I do not understand. So you see different themes, but they do not have any effect?

@mdeguzis
Copy link
Author

mdeguzis commented Aug 17, 2022

Yes, when I try to apply a new theme, nothing really changes or the way it looks is not per the screenshot. I checked the samples in https://github.com/vim-airline/vim-airline-themes/blob/master/autoload/airline/themes/atomic.vim. I usehttps://github.com/ryanoasis/nerd-fonts.

default: AirlineTheme: dark

image

my badwolf:
image

wiki badwolf
image

my deus:
image

@chrisbra
Copy link
Member

hm, not sure. Can you try with a minimal vimrc?
E.g. with vim-airline and vim-airline-themes cloned into ~/.vim/pack/minpac/start/

vim --clean -u <(cat <<EOF
set nocompatible
set bg=dark
set termguicolors
filetype plugin indent on
syntax enable
let &rtp  = '~/.vim/pack/minpac/start/vim-airline,~/.vim/pack/minpac/start/vim-airline-themes,' . &rtp
EOF
)

@mdeguzis
Copy link
Author

I get the same behavior :(

git clone https://github.com/vim-airline/vim-airline-themes ~/.vim/pack/minpac/start/vim-airline-themes
git clone https://github.com/vim-airline/vim-airline ~/.vim/pack/minpac/start/vim-airline

vim --clean -u <(cat <<EOF
set nocompatible
set bg=dark
set termguicolors
filetype plugin indent on
syntax enable
let &rtp  = '~/.vim/pack/minpac/start/vim-airline,~/.vim/pack/minpac/start/vim-airline-themes,' . &rtp
EOF
)

default dark:
image

Switch to badwolf:
image

I wonder if it has to do with fonts at all :/

@chrisbra
Copy link
Member

hm, puzzeling. What terminal are you using? Have you tried in gvim or with an xterm?

@mdeguzis
Copy link
Author

Terminal.App on OSX

image

@chrisbra
Copy link
Member

chrisbra commented Sep 8, 2022

can you show the output of :scriptnames (after changing the themes)?

@mdeguzis
Copy link
Author

mdeguzis commented Sep 9, 2022

Default is dark as expected

:AirlineTheme
 NORMAL  /tmp/a                                                                                                                                                                                           utf-8[unix]  100% ㏑:0/1☰℅:1 
dark

Change to badwolf:
Gist: https://gist.github.com/mdeguzis/3263b0bdd21428ef4a922cbe6135bb3b

@chrisbra
Copy link
Member

I am out of ideas currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants