From a2160fb812aed0c20823c03edcc98072d0d0b00a Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 3 Feb 2017 19:49:18 +0800 Subject: [PATCH] Add doc for elixir layer --- autoload/SpaceVim.vim | 6 +++++ autoload/SpaceVim/layers/checkers.vim | 5 ++++ autoload/SpaceVim/layers/lang/elixir.vim | 9 +++++++ config/init.vim | 2 +- doc/SpaceVim.txt | 34 +++++++++++++++++------- 5 files changed, 46 insertions(+), 10 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index a30a9ddee..61be92a45 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -298,6 +298,12 @@ function! SpaceVim#end() abort let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc' exe 'helptags ' . help + "" + " set language + if !empty(g:spacevim_language) + silent exec 'lan ' . g:spacevim_language + endif + call SpaceVim#plugins#load() endfunction diff --git a/autoload/SpaceVim/layers/checkers.vim b/autoload/SpaceVim/layers/checkers.vim index 1cfff338b..cebf33b62 100644 --- a/autoload/SpaceVim/layers/checkers.vim +++ b/autoload/SpaceVim/layers/checkers.vim @@ -1,3 +1,8 @@ +"" +" @section checkers, layer-checkers +" @parentsection layers +" SpaceVim use neomake as default syntax checker. + function! SpaceVim#layers#checkers#plugins() abort let plugins = [] diff --git a/autoload/SpaceVim/layers/lang/elixir.vim b/autoload/SpaceVim/layers/lang/elixir.vim index 1d9755502..d555ba96a 100644 --- a/autoload/SpaceVim/layers/lang/elixir.vim +++ b/autoload/SpaceVim/layers/lang/elixir.vim @@ -1,3 +1,12 @@ +"" +" @section lang#elixir, layer-lang-elixir +" @parentsection layers +" @subsection Intro +" lang#elixir layer provide code completion,documentation lookup, jump to +" definition, mix integration and iex integration for elixir project. SpaceVim +" use neomake as default syntax checker which is loaded in +" @section(layer-checkers) + function! SpaceVim#layers#lang#elixir#plugins() abort let plugins = [] call add(plugins, ['slashmili/alchemist.vim', {'on_ft' : 'elixir'}]) diff --git a/config/init.vim b/config/init.vim index e95d04c4f..c8f1fe47c 100644 --- a/config/init.vim +++ b/config/init.vim @@ -26,7 +26,7 @@ else silent exec 'language en_US' else " in linux-terminal - silent exec 'lan POSIX' + silent exec 'lan en_US.utf8' endif endif diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 957f948cb..b436aed51 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -8,15 +8,17 @@ CONTENTS *SpaceVim-contents* 3. Functions............................................|SpaceVim-functions| 4. Layers..................................................|SpaceVim-layers| 1. autocomplete..................................|SpaceVim-autocomplete| - 2. colorscheme....................................|SpaceVim-colorscheme| - 3. lang#c........................................|SpaceVim-layer-lang-c| - 4. lang#go......................................|SpaceVim-layer-lang-go| - 5. lang#java..................................|SpaceVim-layer-lang-java| - 6. lang#php....................................|SpaceVim-layer-lang-php| - 7. lang#python..............................|SpaceVim-layer-lang-python| - 8. lang#rust..................................|SpaceVim-layer-lang-rust| - 9. lang#xml....................................|SpaceVim-layer-lang-xml| - 10. shell.........................................|SpaceVim-layer-shell| + 2. checkers....................................|SpaceVim-layer-checkers| + 3. colorscheme....................................|SpaceVim-colorscheme| + 4. lang#c........................................|SpaceVim-layer-lang-c| + 5. lang#elixir..............................|SpaceVim-layer-lang-elixir| + 6. lang#go......................................|SpaceVim-layer-lang-go| + 7. lang#java..................................|SpaceVim-layer-lang-java| + 8. lang#php....................................|SpaceVim-layer-lang-php| + 9. lang#python..............................|SpaceVim-layer-lang-python| + 10. lang#rust.................................|SpaceVim-layer-lang-rust| + 11. lang#xml...................................|SpaceVim-layer-lang-xml| + 12. shell.........................................|SpaceVim-layer-shell| 5. FAQ........................................................|SpaceVim-faq| ============================================================================== @@ -264,6 +266,11 @@ neosnippet support custtom snippets, and the default snippets directory is `~/.SpaceVim.d/snippets/` and if g:spacevim_force_global_config = 1, SpaceVim will not append `./.SpaceVim.d/snippets` as default snippets directory. +============================================================================== +CHECKERS *SpaceVim-layer-checkers* + +SpaceVim use neomake as default syntax checker. + ============================================================================== COLORSCHEME *SpaceVim-colorscheme* @@ -432,6 +439,15 @@ get completions within conditional preprocessor blocks. The default is 50, setting it to 0 disables this feature. +============================================================================== +LANG#ELIXIR *SpaceVim-layer-lang-elixir* + +INTRO +lang#elixir layer provide code completion,documentation lookup, jump to +definition, mix integration and iex integration for elixir project. SpaceVim +use neomake as default syntax checker which is loaded in +|SpaceVim-layer-checkers| + ============================================================================== LANG#GO *SpaceVim-layer-lang-go*