docs: use TOML for Conjure configuration

This commit is contained in:
hl-valdemar
2026-10-22 15:51:40 +02:00
parent c60890eb4a
commit 586e1c75e7
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -181,11 +181,11 @@ esac
if err := os.WriteFile(zed, []byte(`{"name":"old","themes":[{"name":"old"}]}`), 0o644); err != nil {
t.Fatal(err)
}
conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.json")
conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.toml")
if err := os.MkdirAll(filepath.Dir(conjureConfig), 0o755); err != nil {
t.Fatal(err)
}
const userConfig = `{"theme":"tint","colors":{"accent":"#abcdef"}}`
const userConfig = "theme = \"tint\"\n\n[colors]\naccent = \"#abcdef\"\n"
if err := os.WriteFile(conjureConfig, []byte(userConfig), 0o644); err != nil {
t.Fatal(err)
}