aboutsummaryrefslogtreecommitdiff
path: root/mingling_cli/tmpls/rust-analyzer.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-23 03:29:31 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-23 03:29:31 +0800
commit58dc57c855c6923155c80a0332dd3126f687fa38 (patch)
treefcf9a787389e4d88e4cc72202b0c6571f73cb358 /mingling_cli/tmpls/rust-analyzer.toml
parente63b6f313d2c8452b55910b606ae0ae97c3c49fc (diff)
feat: add section-aware TOML key lookup for rust-analyzer config
Make TOML key lookups in `mlint install` commands aware of the `[rust-analyzer]` section boundaries. Introduce a shared TOML section parsing utility and refactor `find_key_value` and `find_table_header` into section-scoped equivalents (`find_key_in_section`, `build_override_insert`). Also add a build script to copy `.run/rust-analyzer.toml` to the workspace root if absent, and add the generated copy to `.gitignore`.
Diffstat (limited to 'mingling_cli/tmpls/rust-analyzer.toml')
-rw-r--r--mingling_cli/tmpls/rust-analyzer.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mingling_cli/tmpls/rust-analyzer.toml b/mingling_cli/tmpls/rust-analyzer.toml
index 96a96b4..26e8141 100644
--- a/mingling_cli/tmpls/rust-analyzer.toml
+++ b/mingling_cli/tmpls/rust-analyzer.toml
@@ -1,3 +1,4 @@
+[rust-analyzer]
checkOnSave = true
# Use mling with ra-lint-check for code checking