1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 09:30:04 +08:00

Merge pull request #199 from SpaceVim/snippets

Snippets
This commit is contained in:
Wang Shidong 2017-02-03 14:38:45 +08:00 committed by GitHub
commit a28f75171e
4 changed files with 10 additions and 3 deletions

View File

@ -13,7 +13,10 @@
" @subsection snippet " @subsection snippet
" SpaceVim use neosnippet as default snippet engine, and the default snippets " SpaceVim use neosnippet as default snippet engine, and the default snippets
" is `Shougo/neosnippet-snippets`. for more information, please read " is `Shougo/neosnippet-snippets`. for more information, please read
" |neosnippet|. " |neosnippet|. 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.

View File

@ -1,5 +1,6 @@
if isdirectory(expand('~/DotFiles/snippets/')) let g:neosnippet#snippets_directory = [expand('~/.SpaceVim.d/snippets/'), expand('~/.SpaceVim/snippets/')]
let g:neosnippet#snippets_directory = expand('~/DotFiles/snippets/') if g:spacevim_force_global_config == 0
call add(g:neosnippet#snippets_directory, getcwd() . '/.Spacevim.d/snippets')
endif endif
let g:neosnippet#enable_snipmate_compatibility=1 let g:neosnippet#enable_snipmate_compatibility=1
let g:neosnippet#enable_complete_done = 1 let g:neosnippet#enable_complete_done = 1

View File

@ -260,6 +260,9 @@ see |g:spacevim_enable_ycm|.
SNIPPET SNIPPET
SpaceVim use neosnippet as default snippet engine, and the default snippets is SpaceVim use neosnippet as default snippet engine, and the default snippets is
`Shougo/neosnippet-snippets`. for more information, please read |neosnippet|. `Shougo/neosnippet-snippets`. for more information, please read |neosnippet|.
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.
============================================================================== ==============================================================================
COLORSCHEME *SpaceVim-colorscheme* COLORSCHEME *SpaceVim-colorscheme*

0
filetype.vim Normal file
View File