1
Fork 0
mirror of https://github.com/RGBCube/ThemeNix synced 2025-07-27 16:37:46 +00:00

Add completer

This commit is contained in:
RGBCube 2023-12-03 12:21:29 +03:00
parent 74a0f09d71
commit f542cc71cf
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env nu
def theme-to-nix [
theme: record, # The theme to convert to Nix.
] -> nothing {
theme: record # The theme to convert to Nix.
] {
$theme
| items { |key, value|
let key = match $key {

View file

@ -2,8 +2,8 @@
# Visualizes a theme in the terminal.
def main [
theme: string, # The path to the theme to visualize.
] -> nothing {
theme: string@"ls themes" # The path to the theme to visualize.
] {
if not ($env.COLORTERM | str contains "truecolor") {
echo "your terminal emulator doesn't support truecolor, colors may be wrong\n"
}