Only load snippet files when you need to.

This commit is contained in:
Holger Rapp 2014-02-10 09:02:31 +01:00
parent f8a07ae8e3
commit da1ff4087b

View File

@ -728,7 +728,6 @@ class SnippetManager(object):
except ValueError: except ValueError:
self._filetypes[_vim.buf.number].insert(idx + 1, ft) self._filetypes[_vim.buf.number].insert(idx + 1, ft)
idx += 1 idx += 1
self._ensure_all_loaded()
def _find_snippets(self, ft, trigger, potentially=False, seen=None): def _find_snippets(self, ft, trigger, potentially=False, seen=None):
"""Find snippets matching trigger """Find snippets matching trigger