Skip to content

Commit fcafb4b

Browse files
rgreenblatthaze
authored andcommitted
Add some documentation about compilers to the readme
1 parent aa8a926 commit fcafb4b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ This plugin enables automatic code formatting on save by default using
3636
```
3737
let g:zig_fmt_autosave = 0
3838
```
39+
40+
The default compiler which gets used by `:make` (`:help :compiler` for details)
41+
is `zig_build` and it runs `zig build`. The other options are:
42+
* `:compiler zig_test` which runs `zig test` on the current file.
43+
* `:compiler zig_build_exe` which runs `zig build-exe` on the current file.
44+
* `:compiler zig` which requires that a subcommand is passed as an argument
45+
and it runs on the current file.

0 commit comments

Comments
 (0)