mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
3ac76a0ca8
Fix up Fix up Fix up Fix rtp Update project layout Fix colorscheme layer Add colorsheme close #1308 Close #1307 Set default fillchars Move cache to cache Disable lang layer Remove layers Fix crash ref : https://github.com/neovim/neovim/issues/7876 Fix plugin manager Filter same filename:linenumber in flygrep Fix type
35 lines
1.3 KiB
VimL
35 lines
1.3 KiB
VimL
let g:neosnippet#snippets_directory = get(g:,'neosnippet#snippets_directory',
|
|
\ '')
|
|
if empty(g:neosnippet#snippets_directory)
|
|
unlet g:neosnippet#snippets_directory
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
\ expand('~/.SpaceVim.d/snippets/')]
|
|
elseif type(g:spacevim_force_global_config) == type('')
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
\ expand('~/.SpaceVim.d/snippets/')] +
|
|
\ [g:neosnippet#snippets_directory]
|
|
elseif type(g:spacevim_force_global_config) == type([])
|
|
let g:neosnippet#snippets_directory = [expand('~/.SpaceVim/snippets/'),
|
|
\ expand('~/.SpaceVim.d/snippets/')] +
|
|
\ g:neosnippet#snippets_directory
|
|
endif
|
|
|
|
if g:spacevim_force_global_config == 0
|
|
let g:neosnippet#snippets_directory = [getcwd() . '/.SpaceVim.d/snippets'] +
|
|
\ g:neosnippet#snippets_directory
|
|
endif
|
|
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
|
|
let g:neosnippet#completed_pairs.java = {'(' : ')'}
|
|
if g:neosnippet#enable_complete_done
|
|
let g:neopairs#enable = 0
|
|
endif
|
|
|
|
" vim:set et sw=2 cc=80:
|