Giter VIP home page Giter VIP logo

Comments (7)

utilyre avatar utilyre commented on May 17, 2024

This is the intended behavior, see theming.

from barbecue.nvim.

GnikDroy avatar GnikDroy commented on May 17, 2024

I have read the document. It doesn't mention why the default parameter is not used, though.

Just to be sure, I am talking about :h nvim_set_hl
• default: Don't override existing definition |:hi-default| in the following:

vim.api.nvim_set_hl(
0,
icon.highlight,
vim.tbl_extend("force", theme.normal, { foreground = icon.color })
)

I notice that any particular group overrides theme.normal (possibly to allowing us to change background for all groups)

But none of them set the default parameter, even though they are supposed to be "default" values.

I can see that it has its own theming mechanism, like lualine. But unlike lualine, barbecue doesn't have theme = auto, or something similar.

Can you explain why this is the intended behaviour?

from barbecue.nvim.

utilyre avatar utilyre commented on May 17, 2024

I can see that it has its own theming mechanism, like lualine. But unlike lualine, barbecue doesn't have theme = auto, or something similar.

Yes, it does have! See the Configurations section on the readme.

from barbecue.nvim.

GnikDroy avatar GnikDroy commented on May 17, 2024

Apologies. Somehow missed that.

Still can't figure out why "default" is not set though. What does it break?

from barbecue.nvim.

utilyre avatar utilyre commented on May 17, 2024

barbecue_* highlights are meant to be generated on the fly according to the theme. So if the default option gets enabled, it'd be possible to end up with highlight values that weren't expected.

from barbecue.nvim.

GnikDroy avatar GnikDroy commented on May 17, 2024

Edit: on further inspection, I think this is fine.

Although, I wonder if we could get rid of the plugin load order issue.

NOTE: Make sure barbecue loads after your colorscheme.

from barbecue.nvim.

utilyre avatar utilyre commented on May 17, 2024

It's just good practice to load your colorscheme before any other plugin, from lazy.nvim readme:

NOTE: since start plugins can possibly change existing highlight groups, it's important to make sure that your main colorscheme is loaded first. To ensure this you can use the priority=1000 field. (see the examples)

from barbecue.nvim.

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.