mirror of
https://github.com/nushell/nushell
synced 2024-12-25 12:33:17 +00:00
Add shape_garbage (#14626)
# Description Adds `$env.config.color_config.shape_garbage` to the default config so that it is populated out of the box. Thanks to @PerchunPak for finding that it was missing. # User-Facing Changes I think this is useful on two levels, but it will be a change for a lot of users: 1. Accessing it won't generate an error out-of-the-box 2. Garbage errors are highlighted in reverse-red in real-time in the REPL. This means that, for example, typing just a `$` will start out as an error - Once a valid variable (e.g., `$env`) is completed, then the highlight will change to the parsed shape. # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` # After Submitting N/A
This commit is contained in:
parent
11375c19d2
commit
bf8763fc11
1 changed files with 5 additions and 0 deletions
|
@ -60,4 +60,9 @@ $env.config.color_config = {
|
|||
shape_variable: purple
|
||||
shape_vardecl: purple
|
||||
shape_raw_string: light_purple
|
||||
shape_garbage: {
|
||||
fg: white
|
||||
bg: red
|
||||
attr: b
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue