From ec7d944fcc1e0b9e2b6ba5bf50a4115971044a99 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Wed, 31 Jul 2019 21:35:57 +0800 Subject: [PATCH] Add lang#assembly layer (#2979) * Add lang#assembly layer * Add doc * Update doc --- autoload/SpaceVim/layers/lang/assembly.vim | 13 +++++++++ docs/cn/layers.md | 1 + docs/cn/layers/lang/assembly.md | 32 ++++++++++++++++++++++ docs/layers.md | 1 + docs/layers/lang/assembly.md | 31 +++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 autoload/SpaceVim/layers/lang/assembly.vim create mode 100644 docs/cn/layers/lang/assembly.md create mode 100644 docs/layers/lang/assembly.md diff --git a/autoload/SpaceVim/layers/lang/assembly.vim b/autoload/SpaceVim/layers/lang/assembly.vim new file mode 100644 index 000000000..2facf484d --- /dev/null +++ b/autoload/SpaceVim/layers/lang/assembly.vim @@ -0,0 +1,13 @@ +"============================================================================= +" assembly.vim --- lang#assembly layer +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + +function! SpaceVim#layers#lang#assembly#plugins() abort + let plugins = [] + call add(plugins, ['wsdjeg/vim-assembly', { 'merged' : 0}]) + return plugins +endfunction diff --git a/docs/cn/layers.md b/docs/cn/layers.md index 07143ad6e..73f51bbfb 100644 --- a/docs/cn/layers.md +++ b/docs/cn/layers.md @@ -85,6 +85,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管 | [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。 | | [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 Agda 的开发支持,主要包括语法高亮及一键运行。 | | [lang#asciidoc](lang/asciidoc/) | 这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。 | +| [lang#assembly](lang/assembly/) | 该模块为 SpaceVim 提供了 Assembly 语言开发支持,包括语法高亮。 | | [lang#autohotkey](lang/autohotkey/) | 这一模块为 SpaceVim 提供了 Autohotkey 的开发支持,包括语法高亮和自动补全等功能。 | | [lang#c](lang/c/) | 这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。 | | [lang#clojure](lang/clojure/) | 这一模块为 SpaceVim 提供了 Clojure 的开发支持,包括代码补全、语法检查、代码格式化等特性。 | diff --git a/docs/cn/layers/lang/assembly.md b/docs/cn/layers/lang/assembly.md new file mode 100644 index 000000000..761340e6b --- /dev/null +++ b/docs/cn/layers/lang/assembly.md @@ -0,0 +1,32 @@ +--- +title: "SpaceVim lang#assembly 模块" +description: "该模块为 SpaceVim 提供了 Assembly 语言开发支持,包括语法高亮。" +lang: cn +--- + +# [可用模块](../../) >> lang#assembly + + + +- [模块简介](#模块简介) +- [功能特性](#功能特性) +- [启用模块](#启用模块) + + + +## 模块简介 + +该模块为 SpaceVim 提供了 Assembly 语言开发支持。 + +## 功能特性 + +- 语法高亮 + +## 启用模块 + +可通过在配置文件内加入如下配置来启用该模块: + +```toml +[[layers]] + name = "lang#assembly" +``` diff --git a/docs/layers.md b/docs/layers.md index b1b11f01c..ba295c96e 100644 --- a/docs/layers.md +++ b/docs/layers.md @@ -91,6 +91,7 @@ Some layers are enabled by default. The following example shows how to disable ` | [lang#WebAssembly](lang/WebAssembly/) | This layer adds WebAssembly support to SpaceVim | | [lang#agda](lang/agda/) | This layer adds Agda language support to SpaceVim. | | [lang#asciidoc](lang/asciidoc/) | Edit AsciiDoc within vim, autopreview AsciiDoc in the default browser, with this layer you can also format AsciiDoc file. | +| [lang#assembly](lang/assembly/) | This layer adds Assembly language support to SpaceVim, including syntax highlighting. | | [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. | | [lang#clojure](lang/clojure/) | This layer is for Clojure development, provide autocompletion, syntax checking, code format for Clojure file. | diff --git a/docs/layers/lang/assembly.md b/docs/layers/lang/assembly.md new file mode 100644 index 000000000..47299a63a --- /dev/null +++ b/docs/layers/lang/assembly.md @@ -0,0 +1,31 @@ +--- +title: "SpaceVim lang#assembly layer" +description: "This layer adds Assembly language support to SpaceVim, including syntax highlighting." +--- + +# [Available Layers](../../) >> lang#assembly + + + +- [Description](#description) +- [Features](#features) +- [Install](#install) + + + +## Description + +This layer adds Assembly language support to SpaceVim. + +## Features + +- syntax highlighting + +## Install + +To use this configuration layer, update custom configuration file with: + +```toml +[[layers]] + name = "lang#assembly" +```