mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
Add option for ultisnips
This commit is contained in:
parent
36706524f3
commit
1c5b839e73
@ -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.
|
||||||
|
@ -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'
|
||||||
|
@ -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']}],
|
||||||
|
@ -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.
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user