Skip to content

Commit 449df4d

Browse files
committed
feat(readme): update config
1 parent 6d4346d commit 449df4d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ Config Example:
5959
}
6060
},
6161
},
62+
rust = {
63+
-- add `#[rstest]` to test function's attribute choices, if the test mod has already use `rstest` directly
64+
rstest_support = false,
65+
},
6266
},
6367
disable_auto_expansion = {
6468
-- disable these snippets' auto expansion
@@ -281,12 +285,12 @@ tmss! -> absl::flat_hash_map<std::string, std::string>
281285

282286
#### Normal Snippets
283287

284-
| Trig | Desc | Context Required |
285-
| :---: | -------------------------------------------------------------------- | :--------------: |
286-
| `fn` | Expands to function definition. | No |
287-
| `wfn` | Expands to function definition returns a widget. | No |
288-
| `afn` | Expands to an async function definition. | No |
289-
| `tfn` | Expands to a test function. `#[test]` or `#[tokio::test]` supported. | No |
288+
| Trig | Desc | Context Required |
289+
| :---: | -------------------------------------------------------------------------------------------------------------------------------------------- | :--------------: |
290+
| `fn` | Expands to function definition. | No |
291+
| `wfn` | Expands to function definition returns a widget. | No |
292+
| `afn` | Expands to an async function definition. | No |
293+
| `tfn` | Expands to a test function. `#[test]` or `#[tokio::test]` supported. With `snippet.rust.rstest_support` enabled, `#[rstest]` also supported. | No |
290294

291295
#### Auto-snippets
292296

0 commit comments

Comments
 (0)