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")
|
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
|
||||||
|
@ -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.
|
||||||
|
@ -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())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user