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

custom colors table #13

Open
pedrohgmacedo opened this issue Jan 21, 2024 · 5 comments
Open

custom colors table #13

pedrohgmacedo opened this issue Jan 21, 2024 · 5 comments

Comments

@pedrohgmacedo
Copy link

Hi, I'm trying to replace lualine with your plugin.
Is there a way to replace the colors.lua table for all components?
The current theme does not handle light themes very well.
THanks

@marcelarie
Copy link

marcelarie commented Jan 26, 2024

I would like to know too.

I think here there is some information on how to do it "manually".

@pedrohgmacedo
Copy link
Author

I would like to know too.

I think here there is some information on how to do it "manually".

Yeah, but then I would be basically be rewriting all the plugin components.
For instance, here is how the encoding component configures the colors:

local colors = require("sttusline.utils.color")
local Encoding = require("sttusline.component").new()
Encoding.set_colors { fg = colors.yellow }

If I understood it correctly you'd have to do that for every component.
I was thinking of maybe adding an entry point to override the colors component, and make the plugin source from there if it exists, and if not, source from colors.

@marcelarie
Copy link

Yes you are right, that would make life much easier 😆

@marcelarie
Copy link

more info here

@sontungexpt
Copy link
Owner

I'm taking a break after a busy period, finally having time to dive into studying Neovim's API highlight. I'll be concentrating on fixing and optimizing it. I suggest using the table_version branch, as I no longer use the main branch.

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

3 participants