File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Lightweight yet powerful formatter plugin for Neovim
10
10
- [ Setup] ( #setup )
11
11
- [ Formatters] ( #formatters )
12
12
- [ Customizing formatters] ( #customizing-formatters )
13
+ - [ Magic strings] ( #magic-strings )
13
14
- [ Recipes] ( #recipes )
14
15
- [ Debugging] ( #debugging )
15
16
- [ Advanced topics] ( #advanced-topics )
@@ -461,6 +462,15 @@ require("conform").formatters.shfmt = {
461
462
}
462
463
```
463
464
465
+ ### Magic strings
466
+
467
+ The following magic strings are available in ` args ` and ` range_args ` . They will be dynamically replaced at runtime with the relevant value.
468
+
469
+ - ` $FILENAME ` - absolute path to the file
470
+ - ` $DIRNAME ` - absolute path to the directory that contains the file
471
+ - ` $RELATIVE_FILEPATH ` - relative path to the file
472
+ - ` $EXTENSION ` - the file extension, e.g. ` .py `
473
+
464
474
## Recipes
465
475
466
476
<!-- RECIPES -->
You can’t perform that action at this time.
0 commit comments