@@ -21,7 +21,7 @@ julia> Cthulhu.save_config!(Cthulhu.CONFIG) # Will be automatically read next ti
2121```
2222"""
2323function save_config! (config:: CthulhuConfig = CONFIG)
24- @ set_preferences! (
24+ set_preferences! (Cthulhu,
2525 " enable_highlighter" => config. enable_highlighter,
2626 " highlighter" => config. highlighter. exec,
2727 " asm_syntax" => String (config. asm_syntax),
@@ -36,24 +36,23 @@ function save_config!(config::CthulhuConfig=CONFIG)
3636 " annotate_source" => config. annotate_source,
3737 " inlay_types_vscode" => config. inlay_types_vscode,
3838 " diagnostics_vscode" => config. diagnostics_vscode,
39- " jump_always" => config. jump_always,
40- )
39+ " jump_always" => config. jump_always)
4140end
4241
4342function read_config! (config:: CthulhuConfig )
44- config. enable_highlighter = @ load_preference (" enable_highlighter" , config. enable_highlighter)
45- config. highlighter = Cmd (@ load_preference (" highlighter" , config. highlighter))
46- config. asm_syntax = Symbol (@ load_preference (" asm_syntax" , config. asm_syntax))
47- config. pretty_ast = @ load_preference (" pretty_ast" , config. pretty_ast)
48- config. debuginfo = Symbol (@ load_preference (" debuginfo" , config. debuginfo))
49- config. optimize = @ load_preference (" optimize" , config. optimize)
50- config. iswarn = @ load_preference (" iswarn" , config. iswarn)
51- config. remarks = @ load_preference (" remarks" , config. remarks)
52- config. with_effects = @ load_preference (" with_effects" , config. with_effects)
53- config. inline_cost = @ load_preference (" inline_cost" , config. inline_cost)
54- config. type_annotations = @ load_preference (" type_annotations" , config. type_annotations)
55- config. annotate_source = @ load_preference (" annotate_source" , config. annotate_source)
56- config. inlay_types_vscode = @ load_preference (" inlay_types_vscode" , config. inlay_types_vscode)
57- config. diagnostics_vscode = @ load_preference (" diagnostics_vscode" , config. diagnostics_vscode)
58- config. jump_always = @ load_preference (" jump_always" , config. jump_always)
43+ config. enable_highlighter = load_preference (Cthulhu, " enable_highlighter" , config. enable_highlighter)
44+ config. highlighter = Cmd (load_preference (Cthulhu, " highlighter" , config. highlighter))
45+ config. asm_syntax = Symbol (load_preference (Cthulhu, " asm_syntax" , config. asm_syntax))
46+ config. pretty_ast = load_preference (Cthulhu, " pretty_ast" , config. pretty_ast)
47+ config. debuginfo = Symbol (load_preference (Cthulhu, " debuginfo" , config. debuginfo))
48+ config. optimize = load_preference (Cthulhu, " optimize" , config. optimize)
49+ config. iswarn = load_preference (Cthulhu, " iswarn" , config. iswarn)
50+ config. remarks = load_preference (Cthulhu, " remarks" , config. remarks)
51+ config. with_effects = load_preference (Cthulhu, " with_effects" , config. with_effects)
52+ config. inline_cost = load_preference (Cthulhu, " inline_cost" , config. inline_cost)
53+ config. type_annotations = load_preference (Cthulhu, " type_annotations" , config. type_annotations)
54+ config. annotate_source = load_preference (Cthulhu, " annotate_source" , config. annotate_source)
55+ config. inlay_types_vscode = load_preference (Cthulhu, " inlay_types_vscode" , config. inlay_types_vscode)
56+ config. diagnostics_vscode = load_preference (Cthulhu, " diagnostics_vscode" , config. diagnostics_vscode)
57+ config. jump_always = load_preference (Cthulhu, " jump_always" , config. jump_always)
5958end
0 commit comments