1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

Add lang#WebAssembly layer (#2068)

* Add lang#WebAssembly layer

* Update wiki
This commit is contained in:
Wang Shidong 2018-08-21 21:56:23 +08:00 committed by GitHub
parent 9b58158194
commit 7110672a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 131 additions and 56 deletions

View File

@ -0,0 +1,14 @@
"=============================================================================
" WebAssembly.vim --- WebAssembly support for SpaceVim
" Copyright (c) 2016-2017 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#lang#WebAssembly#plugins() abort
let plugins = []
call add(plugins, ['rhysd/vim-wasm', {'merged' : 0}])
return plugins
endfunction

View File

@ -72,6 +72,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
| [denite](denite/) | 提供以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
| [fzf](fzf/) | 提供以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
| [git](git/) | 这一模块为 SpaceVim 提供了 git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 git 插件。 |
| [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 WebAssembly 开发提供支持。 |
| [lang#c](lang/c/) | 这一模块为 c/c++/object-c 的开发提供了支持,包括代码补全、语法检查等特性。 |
| [lang#dart](lang/dart/) | 这一模块为 dart 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
| [lang#elixir](lang/elixir/) | 这一模块为 elixir 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |

View File

@ -0,0 +1,27 @@
---
title: "SpaceVim lang#WebAssembly 模块"
description: "这一模块为 WebAssembly 开发提供支持。"
lang: cn
---
# [可用模块](../../) >> lang#lua
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [启用模块](#启用模块)
<!-- vim-markdown-toc -->
## 模块简介
`lang#WebAssembly` 模块提供了 WebAssembly 语法高亮,采用 [vim-wasm](https://github.com/rhysd/vim-wasm) 这一插件。
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "lang#WebAssembly"
```

View File

@ -51,7 +51,7 @@ enable = false
## Available layers
| Name | Description |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [VersionControl](VersionControl/) | This layers provides general version control feature for vim. It should work with all VC backends such as Git, Mercurial, Bazaar, SVN, etc… |
| [autocomplete](autocomplete/) | Autocomplete code within SpaceVim, fuzzy find the candidates from multiple completion sources, expand snippet before cursor automatically |
| [chat](chat/) | SpaceVim chatting layer provide chatting with qq and weixin in vim. |
@ -67,6 +67,7 @@ enable = false
| [fzf](fzf/) | This layers provide a heavily customized fzf centric work-flow |
| [git](git/) | This layers adds extensive support for git |
| [github](github/) | This layer provides GitHub integration for SpaceVim |
| [lang#WebAssembly](lang/WebAssembly/) | This layer adds WebAssembly support to SpaceVim |
| [lang#agda](lang/agda/) | This layer adds agda language support to SpaceVim |
| [lang#autohotkey](lang/autohotkey/) | This layer adds autohotkey language support to SpaceVim |
| [lang#c](lang/c/) | c/c++/object-c language support for SpaceVim, include code completion, jump to definition, quick runner. |

View File

@ -0,0 +1,31 @@
---
title: "SpaceVim lang#WebAssembly layer"
description: "This layer adds WebAssembly support to SpaceVim"
---
# [Available Layers](../../) >> lang#WebAssembly
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
<!-- vim-markdown-toc -->
## Description
This layer adds WebAssembly language support to SpaceVim.
## Features
- syntax highlighting
## Install
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#kotlin"
```

View File

@ -24,6 +24,7 @@ The next release is v0.9.0.
- Add `lang#swift` layer ([#2027](https://github.com/SpaceVim/SpaceVim/pull/2027))
- Add `lang#nim` layer ([#2018](https://github.com/SpaceVim/SpaceVim/pull/2018))
- Add `lang#purescript` layer ([#2054](https://github.com/SpaceVim/SpaceVim/pull/2054))
- Add `lang#WebAssembly` layer ([#2068](https://github.com/SpaceVim/SpaceVim/pull/2068))
### Improvement