mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:40:05 +08:00
Update doc for snippoet
This commit is contained in:
parent
685ed4af58
commit
e14223c1e7
@ -1,6 +1,7 @@
|
||||
""
|
||||
" @section Autocomplete, autocomplete
|
||||
" @section autocomplete, autocomplete
|
||||
" @parentsection layers
|
||||
" @subsection code completion
|
||||
" 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
|
||||
@ -8,6 +9,11 @@
|
||||
"
|
||||
" SpaceVim include YouCompleteMe, but it is disabled by default, to enable
|
||||
" ycm, see |g:spacevim_enable_ycm|.
|
||||
"
|
||||
" @subsection snippet
|
||||
" SpaceVim use neosnippet as default snippet engine, and the default snippets
|
||||
" is `Shougo/neosnippet-snippets`. for more information, please read
|
||||
" |neosnippet|.
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
""
|
||||
" @section Colorscheme, colorscheme
|
||||
" @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`
|
||||
|
@ -10,7 +10,6 @@ function! SpaceVim#layers#lang#plugins() abort
|
||||
\ ['wavded/vim-stylus', { 'on_ft' : ['styl']}],
|
||||
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
|
||||
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
|
||||
\ ['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}],
|
||||
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
|
||||
\ ['kchmck/vim-coffee-script', { 'on_ft' : ['coffee']}],
|
||||
\ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}],
|
||||
|
@ -1,5 +1,5 @@
|
||||
""
|
||||
" @section layer-lang-rust, layer-lang-rust
|
||||
" @section 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)
|
||||
|
@ -1,11 +1,13 @@
|
||||
""
|
||||
" @section lang#xml, layer-lang-xml
|
||||
" @parentsection layers
|
||||
" when edite an xml file, the omni func is
|
||||
" when edite an xml file, the omni func is `xmlcomplete#CompleteTags`, you can
|
||||
" read the document in `autoload/xmlcomplete.vim` in vim or neovim
|
||||
" runtime directory.
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#xml#plugins() abort
|
||||
return []
|
||||
return [['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}]]
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#xml#config() abort
|
||||
|
@ -7,13 +7,13 @@ CONTENTS *SpaceVim-contents*
|
||||
2. CONFIGURATION...........................................|SpaceVim-config|
|
||||
3. Functions............................................|SpaceVim-functions|
|
||||
4. Layers..................................................|SpaceVim-layers|
|
||||
1. Autocomplete..................................|SpaceVim-autocomplete|
|
||||
2. Colorscheme....................................|SpaceVim-colorscheme|
|
||||
1. autocomplete..................................|SpaceVim-autocomplete|
|
||||
2. colorscheme....................................|SpaceVim-colorscheme|
|
||||
3. lang#c........................................|SpaceVim-layer-lang-c|
|
||||
4. lang#java..................................|SpaceVim-layer-lang-java|
|
||||
5. lang#php....................................|SpaceVim-layer-lang-php|
|
||||
6. lang#xml....................................|SpaceVim-layer-lang-xml|
|
||||
7. layer-lang-rust............................|SpaceVim-layer-lang-rust|
|
||||
6. lang#rust..................................|SpaceVim-layer-lang-rust|
|
||||
7. lang#xml....................................|SpaceVim-layer-lang-xml|
|
||||
5. FAQ........................................................|SpaceVim-faq|
|
||||
|
||||
==============================================================================
|
||||
@ -245,6 +245,7 @@ LAYERS *SpaceVim-layers*
|
||||
==============================================================================
|
||||
AUTOCOMPLETE *SpaceVim-autocomplete*
|
||||
|
||||
CODE COMPLETION
|
||||
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 neovim
|
||||
@ -253,6 +254,10 @@ support python, please read neovim's |provider-python|.
|
||||
SpaceVim include YouCompleteMe, but it is disabled by default, to enable ycm,
|
||||
see |g:spacevim_enable_ycm|.
|
||||
|
||||
SNIPPET
|
||||
SpaceVim use neosnippet as default snippet engine, and the default snippets is
|
||||
`Shougo/neosnippet-snippets`. for more information, please read |neosnippet|.
|
||||
|
||||
==============================================================================
|
||||
COLORSCHEME *SpaceVim-colorscheme*
|
||||
|
||||
@ -473,12 +478,7 @@ requirement:
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
LANG#XML *SpaceVim-layer-lang-xml*
|
||||
|
||||
when edite an xml file, the omni func is
|
||||
|
||||
==============================================================================
|
||||
LAYER-LANG-RUST *SpaceVim-layer-lang-rust*
|
||||
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|
|
||||
@ -504,6 +504,13 @@ mappings:
|
||||
normal <leader>gd rust-doc
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
LANG#XML *SpaceVim-layer-lang-xml*
|
||||
|
||||
when edite an xml file, the omni func is `xmlcomplete#CompleteTags`, you can
|
||||
read the document in `autoload/xmlcomplete.vim` in vim or neovim runtime
|
||||
directory.
|
||||
|
||||
==============================================================================
|
||||
FAQ *SpaceVim-faq*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user