Version 4.1 Fatal: split default snippets repository
This commit is contained in:
@@ -45,6 +45,12 @@ function! s:initialize_script_variables() "{{{
|
||||
" Set runtime dir.
|
||||
let runtime_dir = neosnippet#variables#runtime_dir()
|
||||
let runtime_dir += split(globpath(&runtimepath, 'neosnippets'), '\n')
|
||||
if empty(runtime_dir) && !g:neosnippet#disable_runtime_snippets
|
||||
call neosnippet#util#print_error(
|
||||
\ 'neosnippet default snippets cannot be loaded.')
|
||||
call neosnippet#util#print_error(
|
||||
\ 'You must install neosnippet-snippets or disable runtime snippets.')
|
||||
endif
|
||||
if g:neosnippet#enable_snipmate_compatibility
|
||||
" Load snipMate snippet directories.
|
||||
let runtime_dir += split(globpath(&runtimepath,
|
||||
|
||||
Reference in New Issue
Block a user