diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 32c1fb850..9f84333f8 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -5,6 +5,16 @@ " @order intro version dicts functions exceptions layers autocomplete colorscheme layer_lang_java layer_lang_php layer_lang_c layer-lang-rust faq " SpaceVim is a Modular configuration, a bundle of custom settings " and plugins, for Vim. It got inspired by spacemacs. +" + +"" +" @section CONFIGURATION, config +" SpaceVim use `~/.SpaceVim.d/init.vim` as it's default global config file. +" you can set all the SpaceVim options and layers in it. `~/.SpaceVim.d/` will +" also be added to runtimepath, so you can write your own script in it. +" SpaceVim also support local config of each project. It should be +" `.SpaceVim.d/init.vim` in the root directory of your project. and +" `.SpaceVim.d/` will also be added to runtimepath. "" " Version of SpaceVim , this value can not be changed. diff --git a/autoload/SpaceVim/layers/lang/rust.vim b/autoload/SpaceVim/layers/lang/rust.vim index 3c3393d27..94a53c92a 100644 --- a/autoload/SpaceVim/layers/lang/rust.vim +++ b/autoload/SpaceVim/layers/lang/rust.vim @@ -1,5 +1,8 @@ "" " @section layer-lang-rust, layer-lang-rust +" 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) +" " requirement: " 1. racer : cargo install racer " 2. export RUST_SRC_PATH : diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 29559ce20..08368ba90 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -4,7 +4,7 @@ wsdjeg *Maktaba* *SpaceVim* ============================================================================== CONTENTS *SpaceVim-contents* 1. Introduction.............................................|SpaceVim-intro| - 2. Configuration...........................................|SpaceVim-config| + 2. CONFIGURATION...........................................|SpaceVim-config| 3. Functions............................................|SpaceVim-functions| 4. Layers..................................................|SpaceVim-layers| 5. Autocomplete......................................|SpaceVim-autocomplete| @@ -21,9 +21,17 @@ INTRODUCTION *SpaceVim-intro* SpaceVim is a Modular configuration, a bundle of custom settings and plugins, for Vim. It got inspired by spacemacs. + ============================================================================== CONFIGURATION *SpaceVim-config* +SpaceVim use `~/.SpaceVim.d/init.vim` as it's default global config file. you +can set all the SpaceVim options and layers in it. `~/.SpaceVim.d/` will also +be added to runtimepath, so you can write your own script in it. SpaceVim also +support local config of each project. It should be `.SpaceVim.d/init.vim` in +the root directory of your project. and `.SpaceVim.d/` will also be added to +runtimepath. + *g:spacevim_default_indent* Change the default indent of SpaceVim. default is 2. > @@ -459,6 +467,9 @@ setting it to 0 disables this feature. ============================================================================== LAYER-LANG-RUST *SpaceVim-layer-lang-rust* +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 |SpaceVim-config| + requirement: 1. racer : cargo install racer 2. export RUST_SRC_PATH : you can download src by : rustup component add