From 22379c9846713c3905bc3e4ef5f9187113f5a689 Mon Sep 17 00:00:00 2001 From: 132ikl <132@ikl.sh> Date: Wed, 17 Jul 2024 19:52:47 -0400 Subject: [PATCH] Make default config more consistent (#13399) # Description Fixes some minor config inconsistencies: - Add default value for `shape_glob_interpolation` to light theme, as it is missing - Add right padding space to `shape_garbage` options - Use a integer value for `footer_mode` instead of a string - Set `buffer_editor` to null instead of empty string # User-Facing Changes N/A # Tests + Formatting N/A # After Submitting N/A --- crates/nu-utils/src/sample_config/default_config.nu | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index 5856e385c4..3c3e57fa95 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -47,7 +47,7 @@ let dark_theme = { shape_flag: blue_bold shape_float: purple_bold # shapes are used to change the cli syntax highlighting - shape_garbage: { fg: white bg: red attr: b} + shape_garbage: { fg: white bg: red attr: b } shape_glob_interpolation: cyan_bold shape_globpattern: cyan_bold shape_int: purple_bold @@ -114,7 +114,8 @@ let light_theme = { shape_flag: blue_bold shape_float: purple_bold # shapes are used to change the cli syntax highlighting - shape_garbage: { fg: white bg: red attr: b} + shape_garbage: { fg: white bg: red attr: b } + shape_glob_interpolation: cyan_bold shape_globpattern: cyan_bold shape_int: purple_bold shape_internalcall: cyan_bold @@ -226,9 +227,9 @@ $env.config = { color_config: $dark_theme # if you want a more interesting theme, you can replace the empty record with `$dark_theme`, `$light_theme` or another custom record use_grid_icons: true - footer_mode: "25" # always, never, number_of_rows, auto + footer_mode: 25 # always, never, number_of_rows, auto float_precision: 2 # the precision for displaying floats in tables - buffer_editor: "" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL + buffer_editor: null # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL use_ansi_coloring: true bracketed_paste: true # enable bracketed paste, currently useless on windows edit_mode: emacs # emacs, vi @@ -888,4 +889,4 @@ $env.config = { event: { edit: selectall } } ] -} \ No newline at end of file +}