1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

Merge pull request #203 from SpaceVim/lang/elixir

Lang/elixir
This commit is contained in:
Wang Shidong 2017-02-03 20:48:14 +08:00 committed by GitHub
commit 5210d8a1d7
5 changed files with 51 additions and 10 deletions

View File

@ -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

View File

@ -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 = []

View File

@ -0,0 +1,14 @@
""
" @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'}])
return plugins
endfunction

View File

@ -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

View File

@ -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*