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

Add lang#rst layer (#2447)

This commit is contained in:
Wang Shidong 2020-12-19 21:32:14 +08:00 committed by GitHub
parent cc95234586
commit 6b6db3f524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1755 additions and 0 deletions

View File

@ -0,0 +1,21 @@
"=============================================================================
" rst.vim --- rst language layer
" Copyright (c) 2016-2017 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#lang#rst#plugins() abort
let plugins = []
" this is forked repo,
" @todo push to upstream
call add(plugins, ['wsdjeg/riv.vim', {'merged' : 0}])
return plugins
endfunction
function! SpaceVim#layers#lang#rst#config() abort
endfunction

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,29 @@
---
title: "SpaceVim lang#rst 模块"
description: "这一模块为 rst 编辑提供支持,包括实时预览。"
lang: cn
---
# [可用模块](../../) >> lang#rst
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [启用模块](#启用模块)
<!-- vim-markdown-toc -->
## 模块简介
这一模块为 SpaceVim 提供 rst 编辑支持,包括格式化、实时预览、自动生成 TOC 等特性。
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "lang#rst"
```

27
docs/layers/lang/rst.md Normal file
View File

@ -0,0 +1,27 @@
---
title: "SpaceVim lang#rst layer"
description: "Take Notes in reStructuredText, autopreview in the default browser."
---
# [Available Layers](../../) >> lang#rst
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
<!-- vim-markdown-toc -->
## Description
This layer is for taking notes in reStructuredText.
## Install
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#rst"
```