From 6dec5feaaf71408d85ae916d8d91222126c90c43 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sat, 22 Jun 2019 20:34:37 +0800 Subject: [PATCH] Add lang#matlab layer (#2903) * Add lang#matlab layer * Add matlab doc --- autoload/SpaceVim/layers/lang/matlab.vim | 13 ++++++++ docs/cn/layers/lang/matlab.md | 40 ++++++++++++++++++++++++ docs/layers/lang/matlab.md | 37 ++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 autoload/SpaceVim/layers/lang/matlab.vim create mode 100644 docs/cn/layers/lang/matlab.md create mode 100644 docs/layers/lang/matlab.md diff --git a/autoload/SpaceVim/layers/lang/matlab.vim b/autoload/SpaceVim/layers/lang/matlab.vim new file mode 100644 index 000000000..3453cc58d --- /dev/null +++ b/autoload/SpaceVim/layers/lang/matlab.vim @@ -0,0 +1,13 @@ +"============================================================================= +" matlab.vim --- matlab support for SpaceVim +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + +function! SpaceVim#layers#lang#matlab#plugins() abort + let plugins = [] + call add(plugins, ['wsdjeg/matlab.vim', {'merged' : 0}]) + return plugins +endfunction diff --git a/docs/cn/layers/lang/matlab.md b/docs/cn/layers/lang/matlab.md new file mode 100644 index 000000000..df3fc36b0 --- /dev/null +++ b/docs/cn/layers/lang/matlab.md @@ -0,0 +1,40 @@ +--- +title: "SpaceVim lang#matlab 模块" +description: "该模块为 SpaceVim 提供了 matlab 语言开发支持,包括语法高亮。" +lang: cn +--- + +# [可用模块](../../) >> lang#matlab + + + +- [模块简介](#模块简介) +- [功能特性](#功能特性) +- [启用模块](#启用模块) +- [快捷键](#快捷键) + + + +## 模块简介 + +该模块为 SpaceVim 提供了 matlab 语言开发支持。 + +## 功能特性 + +- 语法高亮 + +## 启用模块 + +可通过在配置文件内加入如下配置来启用该模块: + +```toml +[[layers]] + name = "lang#matlab" +``` + +## 快捷键 + + +在编辑 matlab 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。 + + diff --git a/docs/layers/lang/matlab.md b/docs/layers/lang/matlab.md new file mode 100644 index 000000000..497f5c24b --- /dev/null +++ b/docs/layers/lang/matlab.md @@ -0,0 +1,37 @@ +--- +title: "SpaceVim lang#matlab layer" +description: "This layer adds matlab language support to SpaceVim, including syntax highlighting." +--- + +# [Available Layers](../../) >> lang#matlab + + + +- [Description](#description) +- [Features](#features) +- [Install](#install) +- [Running current file](#running-current-file) + + + +## Description + +This layer adds matlab language support to SpaceVim. + +## Features + +- syntax highlighting + +## Install + +To use this configuration layer, update custom configuration file with: + +```toml +[[layers]] + name = "lang#matlab" +``` + +## Running current file + +To running current file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer. +