From ead0478037b08da5adc6bdaff61de85cbfd93d60 Mon Sep 17 00:00:00 2001
From: wsdjeg <wsdjeg@outlook.com>
Date: Tue, 15 Nov 2022 07:27:43 +0800
Subject: [PATCH] fix(typo): fix typo in r and swift layer

merge https://github.com/SpaceVim/SpaceVim/pull/4745

Co-authored-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
 autoload/SpaceVim/layers/lang/r.vim     |  2 +-
 autoload/SpaceVim/layers/lang/swift.vim |  2 +-
 doc/SpaceVim.txt                        | 74 ++++++++++++-------------
 3 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/autoload/SpaceVim/layers/lang/r.vim b/autoload/SpaceVim/layers/lang/r.vim
index d06f6810a..875440a41 100644
--- a/autoload/SpaceVim/layers/lang/r.vim
+++ b/autoload/SpaceVim/layers/lang/r.vim
@@ -7,7 +7,7 @@
 "=============================================================================
 
 ""
-" @section lang#ring, layers-lang-r
+" @section lang#r, layers-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.
diff --git a/autoload/SpaceVim/layers/lang/swift.vim b/autoload/SpaceVim/layers/lang/swift.vim
index 49688c910..894c86796 100644
--- a/autoload/SpaceVim/layers/lang/swift.vim
+++ b/autoload/SpaceVim/layers/lang/swift.vim
@@ -7,7 +7,7 @@
 "=============================================================================
 
 ""
-" @section lang#swig, layers-lang-swift
+" @section lang#swift, layers-lang-swift
 " @parentsection layers
 " This layer is for swift development, including syntax highlighting and
 " indent. To enable it:
diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt
index c26d498ce..0d4ba2948 100644
--- a/doc/SpaceVim.txt
+++ b/doc/SpaceVim.txt
@@ -191,10 +191,10 @@ CONTENTS                                                   *SpaceVim-contents*
       95. lang#puppet............................|SpaceVim-layers-lang-puppet|
       96. lang#purescript....................|SpaceVim-layers-lang-purescript|
       97. lang#python............................|SpaceVim-layers-lang-python|
-      98. lang#racket............................|SpaceVim-layers-lang-racket|
-      99. lang#racket...............................|SpaceVim-layers-lang-red|
-      100. lang#reason...........................|SpaceVim-layers-lang-reason|
-      101. lang#ring..................................|SpaceVim-layers-lang-r|
+      98. lang#r......................................|SpaceVim-layers-lang-r|
+      99. lang#racket............................|SpaceVim-layers-lang-racket|
+      100. lang#racket..............................|SpaceVim-layers-lang-red|
+      101. lang#reason...........................|SpaceVim-layers-lang-reason|
       102. lang#ring...............................|SpaceVim-layers-lang-ring|
       103. lang#ruby...............................|SpaceVim-layers-lang-ruby|
       104. lang#rust...............................|SpaceVim-layers-lang-rust|
@@ -203,7 +203,7 @@ CONTENTS                                                   *SpaceVim-contents*
       107. lang#sh...................................|SpaceVim-layers-lang-sh|
       108. lang#smalltalk.....................|SpaceVim-layers-lang-smalltalk|
       109. lang#sml.................................|SpaceVim-layers-lang-sml|
-      110. lang#swig..............................|SpaceVim-layers-lang-swift|
+      110. lang#swift.............................|SpaceVim-layers-lang-swift|
       111. lang#swig...............................|SpaceVim-layers-lang-swig|
       112. lang#tcl.................................|SpaceVim-layers-lang-tcl|
       113. lang#teal...............................|SpaceVim-layers-lang-teal|
@@ -4444,6 +4444,37 @@ used:
   SPC l w r       remove workspace folder
 <
 
+==============================================================================
+LANG#R                                                *SpaceVim-layers-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#RACKET                                      *SpaceVim-layers-lang-racket*
 
@@ -4512,37 +4543,6 @@ layer, add following snippet to your |SpaceVim-options| file.
     name = 'lang#reason'
 <
 
-==============================================================================
-LANG#RING                                             *SpaceVim-layers-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-layers-lang-ring*
 
@@ -4998,7 +4998,7 @@ Here is an example how to use above options:
 <
 
 ==============================================================================
-LANG#SWIG                                         *SpaceVim-layers-lang-swift*
+LANG#SWIFT                                        *SpaceVim-layers-lang-swift*
 
 This layer is for swift development, including syntax highlighting and indent.
 To enable it: