1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00
SpaceVim/docs/layers/lang/zig.md

51 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2020-02-17 21:29:30 +08:00
---
title: "SpaceVim lang#zig layer"
2021-06-21 20:39:29 +08:00
description: "This layer is for zig development, provides code runner support for zig files."
2020-02-17 21:29:30 +08:00
---
# [Available Layers](../../) >> lang#zig
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Options](#options)
2020-02-17 21:29:30 +08:00
- [Key bindings](#key-bindings)
2021-06-21 20:39:29 +08:00
- [Run current file](#run-current-file)
- [Test current file](#test-current-file)
2020-02-17 21:29:30 +08:00
<!-- vim-markdown-toc -->
## Description
This layer is for [zig](https://ziglang.org/) development.
## Install
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
2020-02-17 21:29:30 +08:00
```toml
[[layers]]
name = "lang#zig"
```
## Options
2021-06-21 20:39:29 +08:00
- `ztagsbin`: The path of ztags.
2020-02-17 21:29:30 +08:00
## Key bindings
### Run current file
| Mode | Key Bindings | Description |
| ------ | ------------ | ------------------------------ |
| normal | `SPC l r` | build and run the current file |
### Test current file
| Mode | Key Bindings | Description |
| ------ | ------------ | ------------------------------ |
| normal | `SPC l t` | run all tests in current file |
2020-02-17 21:29:30 +08:00