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") if !exists("g:UltiSnipsSnippetDirectories")
let g:UltiSnipsSnippetDirectories = [ "UltiSnips" ] let g:UltiSnipsSnippetDirectories = [ "UltiSnips" ]
endif 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 Glenn Griffin - ggriffiniii
Michael - Pyrohh Michael - Pyrohh
Stanislav Seletskiy - seletskiy Stanislav Seletskiy - seletskiy
Pawel Palucki - ppalucki
Thank you for your support. Thank you for your support.

View File

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