Skip to content

Commit 39d3733

Browse files
committed
[Chore] update default config (#161)
1 parent b033e5e commit 39d3733

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

generator/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn save(_: &Lua, (file_path, config): (String, SnapshotConfigLua)) -> LuaResult<
6060
let snapshot_type: SnapshotType = Path::new(&file_path)
6161
.extension()
6262
.and_then(OsStr::to_str)
63-
.ok_or_else(|| mlua::Error::RuntimeError("Invalid file extension".to_string()))?
63+
.unwrap_or("png")
6464
.to_string()
6565
.into();
6666

lua/codesnap/static.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ return {
2929
color = "#ffffff",
3030
font_family = "Pacifico",
3131
},
32+
radius = 12,
3233
},
3334
themes_folders = {},
3435
fonts_folders = {},

0 commit comments

Comments
 (0)