1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/config/plugins/neosnippet.vim

34 lines
1.3 KiB
VimL
Raw Normal View History

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)
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: