summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-08 13:56:30 -0400
committerpommicket <pommicket@gmail.com>2025-09-08 13:56:30 -0400
commit73e9bfa44c5b104bd322bd7011bebb367853d58c (patch)
treed82a82a63f71c20bb857626c9d711bfdcded75e2 /examples
parent019e2518a943f22c8d7ffee541ba90326613aeb4 (diff)
parse lists
Diffstat (limited to 'examples')
-rw-r--r--examples/simple.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/simple.rs b/examples/simple.rs
index a536f44..72ccf1f 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -6,16 +6,17 @@ fn try_main() -> Result<(), Box<dyn std::error::Error>> {
println!("tab width is {}", conf.get_int_or_default("tab-size", 8)?);
println!(
"indenting with {}",
- if conf.get_bool_or_default("indent-using-spaces", false)? {
- "spaces"
- } else {
- "tabs"
- }
+ conf.get_or_default("indentation-type", "tabs")
+ );
+ println!(
+ "show line numbers: {}",
+ conf.get_bool_or_default("show-line-numbers", false)?
);
println!(
"edit-over-ssh plug-in path: {:?}",
conf.get("plug-in.edit-over-ssh.path")
);
+ println!("C++ extensions: {:?}", conf.get_list("file-extensions.Cpp"));
Ok(())
}