Support new source interface

This commit is contained in:
Shougo Matsushita 2015-06-13 09:24:36 +09:00
parent b52dcbcd5f
commit 3cfe8368cf

View File

@ -24,12 +24,13 @@
#============================================================================= #=============================================================================
import re import re
from .base import Base
class Source(object): class Source(Base):
def __init__(self): def __init__(self):
Base.__init__(self)
self.mark = '[nsnip]' self.mark = '[nsnip]'
self.filters = ['matcher_fuzzy']
pass
def get_complete_position(self, vim, context): def get_complete_position(self, vim, context):
m = re.search(context.input, r'[a-zA-Z_][a-zA-Z0-9_]') m = re.search(context.input, r'[a-zA-Z_][a-zA-Z0-9_]')