-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
vivid: add module #6045
base: master
Are you sure you want to change the base?
vivid: add module #6045
Conversation
@folliehiyuki Hej, I just wanted to check if the PR is alright. It is my first in the |
"set -gx LS_COLORS (${lib.getExe pkgs.vivid} generate ${theme})"; | ||
nushellLine = theme: "${lib.getExe pkgs.vivid} generate ${theme}"; | ||
zshLine = bashLine; | ||
in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can put a with lib;
declaration here, so usages of lib
afterward can be shorten.
}; | ||
|
||
theme = lib.mkOption { | ||
type = lib.types.nullOr lib.types.str; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type = lib.types.nullOr lib.types.str; | |
type = with types; nullOr str; |
assuming that with lib;
was declared above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same goes for the other options as well.
Can you also write a couple of assert tests for |
Description
Add module for https://github.com/sharkdp/vivid.
Previous PRs #2194 and #3705 addressed this, but never merged.
The
themes
andfiletypes
section were taken from #2194.The integrations are used, since the variable name needs to be set to the output of the
vivid generate <theme>
command. One could utilize what #2194 used:but this wouldn't be correct for
fish
andnushell
.Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
ornix develop --ignore-environment .#all
using Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC