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:
parent
cc95234586
commit
6b6db3f524
21
autoload/SpaceVim/layers/lang/rst.vim
Normal file
21
autoload/SpaceVim/layers/lang/rst.vim
Normal 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
|
1678
doc/SpaceVim.txt
1678
doc/SpaceVim.txt
File diff suppressed because it is too large
Load Diff
29
docs/cn/layers/lang/rst.md
Normal file
29
docs/cn/layers/lang/rst.md
Normal 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
27
docs/layers/lang/rst.md
Normal 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"
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user