1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-22 08:45:42 +08:00

Add option for ultisnips

This commit is contained in:
wsdjeg 2017-04-02 19:39:42 +08:00
parent 36706524f3
commit 1c5b839e73
4 changed files with 24 additions and 2 deletions

View File

@ -109,6 +109,13 @@ let g:spacevim_enable_ycm = 0
" Set the width of the SpaceVim sidebar. Default is 30. " Set the width of the SpaceVim sidebar. Default is 30.
" This value will be used by tagbar and vimfiler. " This value will be used by tagbar and vimfiler.
let g:spacevim_sidebar_width = 30 let g:spacevim_sidebar_width = 30
""
" Set the snippet engine of SpaceVim, default is neosnippet. to enable
" ultisnips:
" >
" let g:spacevim_snippet_engine = 'ultisnips'
" <
let g:spacevim_snippet_engine = 'neosnippet'
let g:spacevim_enable_neocomplcache = 0 let g:spacevim_enable_neocomplcache = 0
"" ""
" Enable/Disable cursorline. Default is 0. " Enable/Disable cursorline. Default is 0.

View File

@ -31,8 +31,17 @@ function! SpaceVim#layers#autocomplete#plugins() abort
\ ['Shougo/neopairs.vim', { 'on_i' : 1}], \ ['Shougo/neopairs.vim', { 'on_i' : 1}],
\ ['Raimondi/delimitMate', { 'merged' : 0}], \ ['Raimondi/delimitMate', { 'merged' : 0}],
\ ] \ ]
" snippet
if g:spacevim_snippet_engine ==# 'neosnippet'
call add(plugins, ['Shougo/neosnippet.vim', { 'on_i' : 1 ,
\ 'on_ft' : 'neosnippet',
\ 'loadconf' : 1,
\ 'on_cmd' : 'NeoSnippetEdit'}])
elseif g:spacevim_snippet_engine ==# 'ultisnips'
call add(plugins, ['SirVer/ultisnips',{ 'loadconf_before' : 1,
\ 'merged' : 0}])
endif
if g:spacevim_autocomplete_method ==# 'ycm' if g:spacevim_autocomplete_method ==# 'ycm'
call add(plugins, ['SirVer/ultisnips', { 'loadconf_before' : 1, 'merged' : 0}])
call add(plugins, ['ervandew/supertab', { 'loadconf_before' : 1, 'merged' : 0}]) call add(plugins, ['ervandew/supertab', { 'loadconf_before' : 1, 'merged' : 0}])
call add(plugins, ['Valloric/YouCompleteMe', { 'loadconf_before' : 1, 'merged' : 0}]) call add(plugins, ['Valloric/YouCompleteMe', { 'loadconf_before' : 1, 'merged' : 0}])
elseif g:spacevim_autocomplete_method ==# 'neocomplete' elseif g:spacevim_autocomplete_method ==# 'neocomplete'

View File

@ -1,6 +1,5 @@
function! SpaceVim#layers#lang#plugins() abort function! SpaceVim#layers#lang#plugins() abort
let plugins = [ let plugins = [
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1, 'on_cmd' : 'NeoSnippetEdit'}],
\ ['groenewege/vim-less', { 'on_ft' : ['less']}], \ ['groenewege/vim-less', { 'on_ft' : ['less']}],
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}], \ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}], \ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],

View File

@ -138,6 +138,13 @@ Enable/Disable YouCompleteMe. Default is 0.
Set the width of the SpaceVim sidebar. Default is 30. This value will be used Set the width of the SpaceVim sidebar. Default is 30. This value will be used
by tagbar and vimfiler. by tagbar and vimfiler.
*g:spacevim_snippet_engine*
Set the snippet engine of SpaceVim, default is neosnippet. to enable
ultisnips:
>
let g:spacevim_snippet_engine = 'ultisnips'
<
*g:spacevim_enable_cursorline* *g:spacevim_enable_cursorline*
Enable/Disable cursorline. Default is 0. Enable/Disable cursorline. Default is 0.
> >