Closed bmulholland closed 3 years ago
I'd be open to trying to do this myself with a little guidance.
Why do you use airline in the first place? Check lualine.nvim. It much faster and we already have a theme for it.
I'm waiting for one of the several neovim statusline libraries to mature, including a good out of the box experience. I don't want to waste hours configuring a minor part of my editor.
Currently:
Maybe you checked it a long time ago? As a Lualine user, I can say that it is pretty stable right now, looks great out of the box, very easy to set up (but also very extensible!) and has an “auto” theme option to automatically match your color scheme even if the theme is missing. But I understand that you may not want to migrate. I would suggest you to stick with ayu-vim for now that have a theme for airline.
Sure, I'll give it another shot :)
Here's the out-of-the-box lualine appearance with this theme. This is with theme = auto. The yellow is impossible to read.
I tried setting airline's theme to "ayu" to see if that would fix it, but then I get an error:
(Let me know if you want me to file a separate issue for this :) )
Here's the out-of-the-box lualine appearance with this theme. This is with theme = auto. The yellow is impossible to read.
Yes, sometimes "auto" doesn't work nicely :)
I tried setting airline's theme to "ayu" to see if that would fix it, but then I get an error:
That's weird, will fix this evening, thanks. My lualine just fully customized, I don't use a theme for it.
I tried setting airline's theme to "ayu" to see if that would fix it, but then I get an error:
I can't reproduce this error on my side. Could you provide your configuration?
Weird, still can't reproduce it. I think that the issue is somewhere in your configuration (maybe just not in lualine configuration). Could you provide a complete minimal configuration to trigger the issue?
I think I figured it out, and it's something specific to my setup.
I use dark-notify to change back and forth for night mode. To err on the "don't blind me" side, I default to the dark theme, and shortly after boot the colors change to light. That means that the ayu theme is probably not set until after load. And after load, setting the lualine theme to ayu correctly loads the neovim-ayu lualine theme.
The fix was actually to implement what I was waiting for the fix before I did: add lualine theme switching to my dark-notify config. Now it loads after the ayu theme has been set, so the theme is accessible and no error happens.
Thanks for your help here. I'm migrated to lualine and, while it's still not quite as good as airline, it's probably good enough :)
Glad the problem has been resolved!
https://github.com/Luxed/ayu-vim/blob/master/autoload/airline/themes/ayu.vim