diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 9e4dfd4..d166f95 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -60,7 +60,7 @@ fn save(_: &Lua, (file_path, config): (String, SnapshotConfigLua)) -> LuaResult< let snapshot_type: SnapshotType = Path::new(&file_path) .extension() .and_then(OsStr::to_str) - .ok_or_else(|| mlua::Error::RuntimeError("Invalid file extension".to_string()))? + .unwrap_or("png") .to_string() .into(); diff --git a/lua/codesnap/static.lua b/lua/codesnap/static.lua index 6583e1a..4220f69 100644 --- a/lua/codesnap/static.lua +++ b/lua/codesnap/static.lua @@ -29,6 +29,7 @@ return { color = "#ffffff", font_family = "Pacifico", }, + radius = 12, }, themes_folders = {}, fonts_folders = {},