Accept numbers and text for disabling snipMate.

This commit is contained in:
Holger Rapp 2015-01-15 08:17:37 +01:00
parent d240aa24df
commit e1436a8aeb
3 changed files with 7 additions and 1 deletions

View File

@ -82,3 +82,8 @@ endif
if !exists("g:UltiSnipsSnippetDirectories")
let g:UltiSnipsSnippetDirectories = [ "UltiSnips" ]
endif
" Enable or Disable snipmate snippet expansion.
if !exists("g:UltiSnipsEnableSnipMate")
let g:UltiSnipsEnableSnipMate = 1
endif

View File

@ -1421,6 +1421,7 @@ individuals have contributed to UltiSnips (in chronological order):
Glenn Griffin - ggriffiniii
Michael - Pyrohh
Stanislav Seletskiy - seletskiy
Pawel Palucki - ppalucki
Thank you for your support.

View File

@ -95,7 +95,7 @@ class SnippetManager(object):
enable_snipmate = True
if _vim.eval("exists('g:UltiSnipsEnableSnipMate')") == "1":
enable_snipmate = _vim.eval("g:UltiSnipsEnableSnipMate")
if enable_snipmate:
if enable_snipmate == "1":
self.register_snippet_source("snipmate_files",
SnipMateFileSource())