1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

fix: catppuccin themes declared a const inside a record (#907)

This commit is contained in:
OJarrisonn_ 2024-07-21 09:00:51 -03:00 committed by GitHub
parent 59171b0fd9
commit be32cdaefc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 168 additions and 164 deletions

View file

@ -1,5 +1,5 @@
# Retrieve the theme settings
export def main [] { return {
export def main [] {
const color_palette = {
rosewater: "#dc8a78"
flamingo: "#dd7878"
@ -29,6 +29,7 @@ export def main [] { return {
base: "#eff1f5"
}
return {
separator: $color_palette.overlay0
leading_trailing_space_bg: { attr: "n" }
header: { fg: $color_palette.blue attr: "b" }
@ -111,7 +112,8 @@ export def main [] { return {
background: $color_palette.base
foreground: $color_palette.text
cursor: $color_palette.blue
}}
}
}
# Update the Nushell configuration
export def --env "set color_config" [] {

View file

@ -1,5 +1,5 @@
# Retrieve the theme settings
export def main [] { return {
export def main [] {
const color_palette = {
rosewater: "#f5e0dc"
flamingo: "#f2cdcd"
@ -29,6 +29,7 @@ export def main [] { return {
crust: "#11111b"
}
return {
separator: $color_palette.overlay0
leading_trailing_space_bg: { attr: "n" }
header: { fg: $color_palette.blue attr: "b" }
@ -111,7 +112,8 @@ export def main [] { return {
background: $color_palette.base
foreground: $color_palette.text
cursor: $color_palette.blue
}}
}
}
# Update the Nushell configuration
export def --env "set color_config" [] {