2020-02-17 21:29:30 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim lang#zig layer"
|
|
|
|
description: "This layer is for zig development, provide code runner support for zig file."
|
|
|
|
---
|
|
|
|
|
|
|
|
# [Available Layers](../../) >> lang#zig
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
2020-02-18 12:29:10 +08:00
|
|
|
- [Options](#options)
|
2020-02-17 21:29:30 +08:00
|
|
|
- [Key bindings](#key-bindings)
|
|
|
|
- [Running current script](#running-current-script)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
This layer is for [zig](https://ziglang.org/) development.
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
To use this configuration layer, update custom configuration file with:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "lang#zig"
|
|
|
|
```
|
|
|
|
|
2020-02-18 12:29:10 +08:00
|
|
|
## Options
|
|
|
|
|
|
|
|
- `ztagsbin`: specific the path of ztags.
|
|
|
|
|
2020-02-17 21:29:30 +08:00
|
|
|
## Key bindings
|
|
|
|
|
|
|
|
### Running current script
|
|
|
|
|
|
|
|
To running a zig file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer.
|