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:
parent
59171b0fd9
commit
be32cdaefc
2 changed files with 168 additions and 164 deletions
|
@ -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" [] {
|
||||
|
|
|
@ -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" [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue