mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 04:00:04 +08:00
Update doc for lang#r layer (#3699)
This commit is contained in:
parent
bb31543e8c
commit
56cf06b754
@ -6,6 +6,37 @@
|
|||||||
" License: GPLv3
|
" License: GPLv3
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
|
||||||
|
""
|
||||||
|
" @section lang#ring, layer-lang-r
|
||||||
|
" @parentsection layers
|
||||||
|
" This layer is for r development, disabled by default, to enable this
|
||||||
|
" layer, add following snippet to your SpaceVim configuration file.
|
||||||
|
" >
|
||||||
|
" [[layers]]
|
||||||
|
" name = 'lang#r'
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
" @subsection Key bindings
|
||||||
|
"
|
||||||
|
" The command of code runner for R is `"R <%s"`
|
||||||
|
" `%s` will be replaced to the path of current R file.
|
||||||
|
" >
|
||||||
|
" Key Function
|
||||||
|
" --------------------------------
|
||||||
|
" SPC l r run current file
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
" This layer also provides REPL support for r, the key bindings are:
|
||||||
|
" >
|
||||||
|
" Key Function
|
||||||
|
" ---------------------------------------------
|
||||||
|
" SPC l s i Start a inferior REPL process
|
||||||
|
" SPC l s b send whole buffer
|
||||||
|
" SPC l s l send current line
|
||||||
|
" SPC l s s send selection text
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#r#plugins() abort
|
function! SpaceVim#layers#lang#r#plugins() abort
|
||||||
let plugins = []
|
let plugins = []
|
||||||
call add(plugins, ['wsdjeg/Nvim-R', {'merged' : 0}])
|
call add(plugins, ['wsdjeg/Nvim-R', {'merged' : 0}])
|
||||||
|
@ -134,28 +134,29 @@ CONTENTS *SpaceVim-contents*
|
|||||||
58. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
58. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||||
59. lang#python.............................|SpaceVim-layer-lang-python|
|
59. lang#python.............................|SpaceVim-layer-lang-python|
|
||||||
60. lang#racket.............................|SpaceVim-layer-lang-racket|
|
60. lang#racket.............................|SpaceVim-layer-lang-racket|
|
||||||
61. lang#ring.................................|SpaceVim-layer-lang-ring|
|
61. lang#ring....................................|SpaceVim-layer-lang-r|
|
||||||
62. lang#ruby.................................|SpaceVim-layer-lang-ruby|
|
62. lang#ring.................................|SpaceVim-layer-lang-ring|
|
||||||
63. lang#rust.................................|SpaceVim-layer-lang-rust|
|
63. lang#ruby.................................|SpaceVim-layer-lang-ruby|
|
||||||
64. lang#scala...............................|SpaceVim-layer-lang-scala|
|
64. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||||
65. lang#scheme.............................|SpaceVim-layer-lang-scheme|
|
65. lang#scala...............................|SpaceVim-layer-lang-scala|
|
||||||
66. lang#sh.....................................|SpaceVim-layer-lang-sh|
|
66. lang#scheme.............................|SpaceVim-layer-lang-scheme|
|
||||||
67. lang#swig.................................|SpaceVim-layer-lang-swig|
|
67. lang#sh.....................................|SpaceVim-layer-lang-sh|
|
||||||
68. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
68. lang#swig.................................|SpaceVim-layer-lang-swig|
|
||||||
69. lang#toml.................................|SpaceVim-layer-lang-toml|
|
69. lang#tcl...................................|SpaceVim-layer-lang-tcl|
|
||||||
70. lang#typescript.....................|SpaceVim-layer-lang-typescript|
|
70. lang#toml.................................|SpaceVim-layer-lang-toml|
|
||||||
71. lang#v.......................................|SpaceVim-layer-lang-v|
|
71. lang#typescript.....................|SpaceVim-layer-lang-typescript|
|
||||||
72. lang#vbnet...............................|SpaceVim-layer-lang-vbnet|
|
72. lang#v.......................................|SpaceVim-layer-lang-v|
|
||||||
73. lang#xml...................................|SpaceVim-layer-lang-xml|
|
73. lang#vbnet...............................|SpaceVim-layer-lang-vbnet|
|
||||||
74. lang#xquery.............................|SpaceVim-layer-lang-xquery|
|
74. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||||
75. language server protocol........................|SpaceVim-layer-lsp|
|
75. lang#xquery.............................|SpaceVim-layer-lang-xquery|
|
||||||
76. leaderf.....................................|SpaceVim-layer-leaderf|
|
76. language server protocol........................|SpaceVim-layer-lsp|
|
||||||
77. operator...................................|SpaceVim-layer-operator|
|
77. leaderf.....................................|SpaceVim-layer-leaderf|
|
||||||
78. shell.........................................|SpaceVim-layer-shell|
|
78. operator...................................|SpaceVim-layer-operator|
|
||||||
79. test...........................................|SpaceVim-layer-test|
|
79. shell.........................................|SpaceVim-layer-shell|
|
||||||
80. tmux...........................................|SpaceVim-layer-tmux|
|
80. test...........................................|SpaceVim-layer-test|
|
||||||
81. tools#dash...............................|SpaceVim-layer-tools-dash|
|
81. tmux...........................................|SpaceVim-layer-tmux|
|
||||||
82. tools#zeal...............................|SpaceVim-layer-tools-zeal|
|
82. tools#dash...............................|SpaceVim-layer-tools-dash|
|
||||||
|
83. tools#zeal...............................|SpaceVim-layer-tools-zeal|
|
||||||
7. Usage....................................................|SpaceVim-usage|
|
7. Usage....................................................|SpaceVim-usage|
|
||||||
1. custom_plugins........................|SpaceVim-usage-custom_plugins|
|
1. custom_plugins........................|SpaceVim-usage-custom_plugins|
|
||||||
2. tasks..........................................|SpaceVim-usage-tasks|
|
2. tasks..........................................|SpaceVim-usage-tasks|
|
||||||
@ -2663,6 +2664,37 @@ This layer also provides REPL support for racket, the key bindings are:
|
|||||||
<
|
<
|
||||||
|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LANG#RING *SpaceVim-layer-lang-r*
|
||||||
|
|
||||||
|
This layer is for r development, disabled by default, to enable this layer,
|
||||||
|
add following snippet to your SpaceVim configuration file.
|
||||||
|
>
|
||||||
|
[[layers]]
|
||||||
|
name = 'lang#r'
|
||||||
|
<
|
||||||
|
|
||||||
|
KEY BINDINGS
|
||||||
|
|
||||||
|
The command of code runner for R is `"R <%s"` `%s` will be replaced to the
|
||||||
|
path of current R file.
|
||||||
|
>
|
||||||
|
Key Function
|
||||||
|
--------------------------------
|
||||||
|
SPC l r run current file
|
||||||
|
<
|
||||||
|
|
||||||
|
This layer also provides REPL support for r, the key bindings are:
|
||||||
|
>
|
||||||
|
Key Function
|
||||||
|
---------------------------------------------
|
||||||
|
SPC l s i Start a inferior REPL process
|
||||||
|
SPC l s b send whole buffer
|
||||||
|
SPC l s l send current line
|
||||||
|
SPC l s s send selection text
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LANG#RING *SpaceVim-layer-lang-ring*
|
LANG#RING *SpaceVim-layer-lang-ring*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user