diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 9f84333f8..8ba22b1b3 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -2,7 +2,7 @@ " @section Introduction, intro " @stylized Maktaba " @library -" @order intro version dicts functions exceptions layers autocomplete colorscheme layer_lang_java layer_lang_php layer_lang_c layer-lang-rust faq +" @order intro version dicts functions exceptions layers faq " SpaceVim is a Modular configuration, a bundle of custom settings " and plugins, for Vim. It got inspired by spacemacs. " diff --git a/autoload/SpaceVim/layers/autocomplete.vim b/autoload/SpaceVim/layers/autocomplete.vim index 33ada32e3..e792a791d 100644 --- a/autoload/SpaceVim/layers/autocomplete.vim +++ b/autoload/SpaceVim/layers/autocomplete.vim @@ -1,5 +1,6 @@ "" " @section Autocomplete, autocomplete +" @parentsection layers " SpaceVim use neocomplete as default completion engine for vim with lua " support, if has no lua support neocomplcache will be the completion engine. " SpaceVim use deoplete as default completion engine for nevoim. to make diff --git a/autoload/SpaceVim/layers/colorscheme.vim b/autoload/SpaceVim/layers/colorscheme.vim index 90453c2b1..86e15d787 100644 --- a/autoload/SpaceVim/layers/colorscheme.vim +++ b/autoload/SpaceVim/layers/colorscheme.vim @@ -1,5 +1,6 @@ "" " @section Colorscheme, colorscheme +" @parentsection layers " SpaceVim default colorscheme is gruvbox, you can change it by set spacevim " option. add this to your `~/.SpaceVim.d/init.vim` " > diff --git a/autoload/SpaceVim/layers/lang/c.vim b/autoload/SpaceVim/layers/lang/c.vim index 58a5679bc..3b70d4152 100644 --- a/autoload/SpaceVim/layers/lang/c.vim +++ b/autoload/SpaceVim/layers/lang/c.vim @@ -1,5 +1,6 @@ "" " @section Layer_lang_c +" @parentsection layers " this layer provide c family language code completion and syntax chaeck.you " need install clang. " diff --git a/autoload/SpaceVim/layers/lang/java.vim b/autoload/SpaceVim/layers/lang/java.vim index 6202f018f..9661008f9 100644 --- a/autoload/SpaceVim/layers/lang/java.vim +++ b/autoload/SpaceVim/layers/lang/java.vim @@ -1,5 +1,6 @@ "" " @section Layer_lang_java, layer_lang_java +" @parentsection layers " This layer is for java development. " > " import-mappings: diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index 708f8b300..c161f1f19 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -1,5 +1,6 @@ "" " @section Layer_lang_php +" @parentsection layers " this layer is for php development, and it provide auto codo completion, " and syntax check, and jump to the definition location. " diff --git a/autoload/SpaceVim/layers/lang/rust.vim b/autoload/SpaceVim/layers/lang/rust.vim index 94a53c92a..6627fb1da 100644 --- a/autoload/SpaceVim/layers/lang/rust.vim +++ b/autoload/SpaceVim/layers/lang/rust.vim @@ -1,5 +1,6 @@ "" " @section layer-lang-rust, layer-lang-rust +" @parentsection layers " SpaceVim do not load this layer by default, if you are a rust developer, you " should add `call SpaceVim#layers#load('lang#rust')` to your @section(config) " diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 08368ba90..ed325ea9e 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -7,13 +7,13 @@ CONTENTS *SpaceVim-contents* 2. CONFIGURATION...........................................|SpaceVim-config| 3. Functions............................................|SpaceVim-functions| 4. Layers..................................................|SpaceVim-layers| - 5. Autocomplete......................................|SpaceVim-autocomplete| - 6. Colorscheme........................................|SpaceVim-colorscheme| - 7. Layer_lang_java................................|SpaceVim-layer_lang_java| - 8. Layer_lang_php..................................|SpaceVim-layer_lang_php| - 9. Layer_lang_c......................................|SpaceVim-layer_lang_c| - 10. layer-lang-rust...............................|SpaceVim-layer-lang-rust| - 11. FAQ.......................................................|SpaceVim-faq| + 1. Autocomplete..................................|SpaceVim-autocomplete| + 2. Colorscheme....................................|SpaceVim-colorscheme| + 3. Layer_lang_c..................................|SpaceVim-layer_lang_c| + 4. Layer_lang_java............................|SpaceVim-layer_lang_java| + 5. Layer_lang_php..............................|SpaceVim-layer_lang_php| + 6. layer-lang-rust............................|SpaceVim-layer-lang-rust| + 5. FAQ........................................................|SpaceVim-faq| ============================================================================== INTRODUCTION *SpaceVim-intro* @@ -376,6 +376,43 @@ colorschemes: if the colorscheme you want do not list below, PR welcome. OceanicNext < +============================================================================== +LAYER_LANG_C *SpaceVim-layer_lang_c* + + this layer provide c family language code completion and syntax chaeck.you +need install clang. + +configuration: + + 1.setting compile flag: +> + let g:deoplete#sources#clang#flags = ['-Iwhatever', ...] +< + 2.`g:deoplete#sources#clang#executable` sets the path to the clang +executable. + + 3.`g:deoplete#sources#clang#autofill_neomake` is a boolean that tells this +plugin to fill in the `g:neomake__clang_maker` variable with the +clang executable path and flags. You will still need to enable it with +`g:neomake__enabled_make=['clang']`. + + 4.`g:deoplete#sources#clang#std` is a dict containing the standards you want +to use. It's not used if you already have `-std=whatever` in your flags. The +defaults are: +> + { + 'c': 'c11', + 'cpp': 'c++1z', + 'objc': 'c11', + 'objcpp': 'c++1z', + } +< + 5.`g:deoplete#sources#clang#preproc_max_lines` sets the maximum number of +lines to search for a #ifdef or #endif line. #ifdef lines are discarded to +get completions within conditional preprocessor blocks. The default is 50, +setting it to 0 disables this feature. + + ============================================================================== LAYER_LANG_JAVA *SpaceVim-layer_lang_java* @@ -427,43 +464,6 @@ requirement: Composer Project < -============================================================================== -LAYER_LANG_C *SpaceVim-layer_lang_c* - - this layer provide c family language code completion and syntax chaeck.you -need install clang. - -configuration: - - 1.setting compile flag: -> - let g:deoplete#sources#clang#flags = ['-Iwhatever', ...] -< - 2.`g:deoplete#sources#clang#executable` sets the path to the clang -executable. - - 3.`g:deoplete#sources#clang#autofill_neomake` is a boolean that tells this -plugin to fill in the `g:neomake__clang_maker` variable with the -clang executable path and flags. You will still need to enable it with -`g:neomake__enabled_make=['clang']`. - - 4.`g:deoplete#sources#clang#std` is a dict containing the standards you want -to use. It's not used if you already have `-std=whatever` in your flags. The -defaults are: -> - { - 'c': 'c11', - 'cpp': 'c++1z', - 'objc': 'c11', - 'objcpp': 'c++1z', - } -< - 5.`g:deoplete#sources#clang#preproc_max_lines` sets the maximum number of -lines to search for a #ifdef or #endif line. #ifdef lines are discarded to -get completions within conditional preprocessor blocks. The default is 50, -setting it to 0 disables this feature. - - ============================================================================== LAYER-LANG-RUST *SpaceVim-layer-lang-rust*