Code Monkey home page Code Monkey logo

Comments (13)

Shatur avatar Shatur commented on August 30, 2024 1

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.

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024 1

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 :)

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024

I'd be open to trying to do this myself with a little guidance.

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

Why do you use airline in the first place? Check lualine.nvim. It much faster and we already have a theme for it.

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024

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:

  1. Airline is stable and doesn't require my time to set up or maintain.
  2. lualine doesn't look good out of the box. (Airline does)
  3. There's already an airline theme for both my light theme (ayu) and dark theme (sonokai). There is no lualine theme for sonokai.
  4. Airline has easy-to-use extensions that don't require configuration. In one line, I get integrations with fugitive, gutentags, and more. It's not even clear if these are possible with lualine, nevermind an easy way to set it up.

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

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.

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024

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.

Screen Shot 2021-09-22 at 12 33 17

I tried setting airline's theme to "ayu" to see if that would fix it, but then I get an error:

Screen Shot 2021-09-22 at 12 39 43

(Let me know if you want me to file a separate issue for this :) )

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

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?

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024

https://github.com/bmulholland/dotfiles/blob/ayu-error/neovim/lua/plugins/lualine.lua

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

Can't reproduce. Are you sure you are using this fork?

from neovim-ayu.

bmulholland avatar bmulholland commented on August 30, 2024

Yep: https://github.com/bmulholland/dotfiles/blob/ayu-error/neovim/lua/settings/plugins.lua#L90

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

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?

from neovim-ayu.

Shatur avatar Shatur commented on August 30, 2024

Glad the problem has been resolved!

from neovim-ayu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.