added the other table "themes" so that they could be used via config (#2365)

This commit is contained in:
Darren Schroeder 2020-08-17 11:20:00 -05:00 committed by GitHub
parent 05aca1c157
commit e292bb46bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,10 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme {
vars.get("table_mode")
.map_or(nu_table::Theme::compact(), |mode| match mode.as_string() {
Ok(m) if m == "basic" => nu_table::Theme::basic(),
Ok(m) if m == "compact" => nu_table::Theme::compact(),
Ok(m) if m == "light" => nu_table::Theme::light(),
Ok(m) if m == "thin" => nu_table::Theme::thin(),
_ => nu_table::Theme::compact(),
})
}