Skip to content

plugins/theme: initial theming refactor#1262

Open
NotAShelf wants to merge 4 commits intomainfrom
notashelf/push-unvwonkswwyo
Open

plugins/theme: initial theming refactor#1262
NotAShelf wants to merge 4 commits intomainfrom
notashelf/push-unvwonkswwyo

Conversation

@NotAShelf
Copy link
Copy Markdown
Owner

This is all @faukah's fault. I blame him for everything.

This PR finally refactors the theming module to be more configurable, namely in the sense that it can now:

  1. Use the setupOpts API that we've been pushing
  2. Configure multiple theme plugins at once

In the light of the new API, the old options have been soft-deprecated. I would like to remove them altogether but I ran into some stupid issues with the warning messages, and could not be bothered with fixing each one of them one by one. Eventually we'll want to figure it out. Eventually.

Needs documentaton, and should be merged preferably after #1160 so we don't create more 9-sided merge conflicts.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 4, 2025

🚀 Live preview deployed from 83b44ea

View it here:

Debug Information

Triggered by: NotAShelf

HEAD at: notashelf/push-unvwonkswwyo

Reruns: 2266

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5c43bcf7331b19eaeb9628a4c2f76bfd6a6a6964
Copy link
Copy Markdown
Collaborator

@horriblename horriblename left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just split up supported-themes.nix into their own files, and have them define their options like normal modules?

# modules/plugins/theme/onedark.nix
{lib, config, ...}: {
  options = {
    enable = lib.mkEnableOption "...";
    setupOpts = ...;
  }
  
  config.vim = {
     startPlugins = ["onedark"];
     luaConfigRC = "require'onedark'.setup(${...})";
  };
}

lazy-loading colorschemes is probably desirable since we're allowing multiple colorschemes

@faukah faukah mentioned this pull request Dec 4, 2025
3 tasks
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9bcc09a3f81b228b5758e9cec7aad1ad6a6a6964
github-actions bot pushed a commit that referenced this pull request Jan 27, 2026
Copy link
Copy Markdown
Collaborator

@horriblename horriblename left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed my mind about splitting supporthed-themes.nix, I'll accept this aside from the "what" in the warnings section

(API looks good we'll just refactor later only if it starts being a problem)


# We'd like to warn when the user is using a completely legacy configuration
warnings = let
# FIXME: what
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what

@github-actions github-actions bot deleted the branch main March 1, 2026 05:13
Co-authored-by: Ching Pei Yang <59727193+horriblename@users.noreply.github.com>
@NotAShelf NotAShelf changed the base branch from v0.8 to main March 13, 2026 19:02
github-actions bot pushed a commit that referenced this pull request Mar 13, 2026
@snoweuph snoweuph linked an issue Mar 24, 2026 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

better theme configuration

7 participants