Accept numbers and text for disabling snipMate.
This commit is contained in:
parent
d240aa24df
commit
e1436a8aeb
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user