Closed nkhlmn closed 5 years ago
Hi,
Are you unable to set the theme using :AirlineTheme srcery
?
Could you test to see if you're able to use the themes of the official repo?
Srcery
follows the correct path for Airline themes; which should work if Airline is loaded.
I'm unable to set the theme using :AirlineTheme srcery
(i get a message saying the theme can't be found).
I do have the official themes that you linked and setting to any of those themes work fine.
Thanks for looking into this!
Care to try the following:
vim --startuptime startup.log +qall && grep srcery startup.log && rm startup.log
I find it strange that you are able to load the srcery
colorscheme fine, but the Airline theme don't.
Ran that line you posted and got this output
032.161 007.966 007.427: sourcing /Users/<my-user-name>/.vim/pack/minpac/opt/srcery-vim/colors/srcery.vim
For some reason, the Airline theme is not loaded. It should have been showing in that output.
If you run:
vim --startuptime startup.log +qall && grep airline startup.log && rm startup.log
We can try to see what Airline stuff in fact loaded.
096.666 000.339 000.339: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/init.vim
097.692 000.319 000.319: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/parts.vim
100.394 000.514 000.514: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/util.vim
100.456 005.367 004.195: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/plugin/airline.vim
101.457 000.251 000.251: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline-themes/plugin/airline-themes.vim
194.447 000.974 000.974: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions.vim
195.299 000.322 000.322: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/quickfix.vim
196.285 000.598 000.598: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline.vim
197.406 000.382 000.382: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/term.vim
198.570 000.421 000.421: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/hunks.vim
199.850 000.789 000.789: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/branch.vim
201.179 000.465 000.465: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/fugitiveline.vim
202.602 000.471 000.471: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/ale.vim
204.303 000.473 000.473: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/whitespace.vim
205.432 000.380 000.380: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/wordcount.vim
206.268 000.316 000.316: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/keymap.vim
214.760 000.367 000.367: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/section.vim
215.852 000.640 000.640: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/highlighter.vim
222.874 000.380 000.380: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/themes.vim
223.341 001.348 000.968: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline-themes/autoload/airline/themes/raven.vim
254.707 000.627 000.627: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/builder.vim
255.655 000.347 000.347: sourcing /Users/<my-user-name>/.vim/pack/minpac/start/vim-airline/autoload/airline/extensions/default.vim
Not sure what causes this. The path is correct for the theme. I might suspect that either the file is not present, or the package manager don't install/load it correctly.
What of:
find ~/.vim/pack/minpac/start -name '*srcery*'
Ok, managed to get it working. I had srcery installed as an 'opt' plugin (I read this was recommended for colorschemes) so it was installed in minpac/opt/
instead of minpac/start/
. Installing srcery without the 'opt' option correctly detects the Airline theme.
Don't know enough to say whether installing in start vs opt has any significant benefit, but ideally either would be fully supported. Thanks for helping me figure this out either way!
Glad to see it solved.. Meaning you are to enjoy Srcery
more. 😄
Feel free to close if you regard this as fixed.
The Airline theme isn't being detected when using this colorscheme so vim/neovim just uses the default airline theme. Perhaps it's the package management system i'm using? I'm using minpac, which just uses the built-in package management introduced in vim 8 so ideally this would be a supported configuration. I'm using vim/neovim in iterm 2 on macos. Let me know if there's any other info I can provide.