2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#snippets_directory = get(g:,'neosnippet#snippets_directory',
|
|
|
|
\ '')
|
2017-02-08 20:27:27 +08:00
|
|
|
if empty(g:neosnippet#snippets_directory)
|
2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
|
|
\ expand('~/.SpaceVim.d/snippets/')]
|
2017-02-08 20:27:27 +08:00
|
|
|
elseif type(g:spacevim_force_global_config) == type('')
|
2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
|
|
\ expand('~/.SpaceVim.d/snippets/')] +
|
|
|
|
\ [g:neosnippet#snippets_directory]
|
2017-02-08 20:27:27 +08:00
|
|
|
elseif type(g:spacevim_force_global_config) == type([])
|
2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
|
|
\ expand('~/.SpaceVim.d/snippets/')] +
|
|
|
|
\ g:neosnippet#snippets_directory
|
2017-02-08 20:27:27 +08:00
|
|
|
endif
|
|
|
|
|
2017-02-02 23:51:26 +08:00
|
|
|
if g:spacevim_force_global_config == 0
|
2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#snippets_directory = [getcwd() . '/.Spacevim.d/snippets'] +
|
|
|
|
\ g:neosnippet#snippets_directory
|
2016-12-26 21:11:19 +08:00
|
|
|
endif
|
2017-04-02 23:57:06 +08:00
|
|
|
let g:neosnippet#enable_snipmate_compatibility =
|
|
|
|
\ get(g:, 'neosnippet#enable_snipmate_compatibility', 1)
|
|
|
|
let g:neosnippet#enable_complete_done =
|
|
|
|
\ get(g:, 'neosnippet#enable_complete_done', 1)
|
2017-03-29 21:36:46 +08:00
|
|
|
|
|
|
|
if !exists('g:neosnippet#completed_pairs')
|
|
|
|
let g:neosnippet#completed_pairs = {}
|
|
|
|
endif
|
2016-12-26 21:11:19 +08:00
|
|
|
let g:neosnippet#completed_pairs.java = {'(' : ')'}
|
|
|
|
if g:neosnippet#enable_complete_done
|
2017-03-06 23:26:26 +08:00
|
|
|
let g:neopairs#enable = 0
|
2016-12-26 21:11:19 +08:00
|
|
|
endif
|
2017-03-06 23:26:26 +08:00
|
|
|
|
2017-04-02 23:57:06 +08:00
|
|
|
" vim:set et sw=2 cc=80:
|