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

Move config to lua setup #46

Closed
mvllow opened this issue Dec 3, 2021 · 1 comment · Fixed by #64
Closed

Move config to lua setup #46

mvllow opened this issue Dec 3, 2021 · 1 comment · Fixed by #64

Comments

@mvllow
Copy link
Member

mvllow commented Dec 3, 2021

Idea

local palette = require('rose-pine.palette')
require('rose-pine').setup({
    variant = 'dawn',
    colors = {
        comment = palette.foam,
    }
})

Unfortunately, I am struggling to get this working properly without a dependency loop. With my attempts, config.lua requires palette.lua to set default colours and palette.lua requires config.lua for the variant to return the correct palette.

@mvllow
Copy link
Member Author

mvllow commented Feb 7, 2022

This is currently implemented on the canary branch. API may change before release.

@mvllow mvllow closed this as completed Feb 7, 2022
@mvllow mvllow linked a pull request Feb 7, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant