Fix deoplete source
This commit is contained in:
parent
3cfe8368cf
commit
2dc82874df
@ -32,13 +32,6 @@ class Source(Base):
|
|||||||
|
|
||||||
self.mark = '[nsnip]'
|
self.mark = '[nsnip]'
|
||||||
|
|
||||||
def get_complete_position(self, vim, context):
|
|
||||||
m = re.search(context.input, r'[a-zA-Z_][a-zA-Z0-9_]')
|
|
||||||
if m:
|
|
||||||
return m.start()
|
|
||||||
else:
|
|
||||||
return -1
|
|
||||||
|
|
||||||
def gather_candidates(self, vim, context):
|
def gather_candidates(self, vim, context):
|
||||||
return vim.eval("values(neosnippet#helpers#get_snippets())")
|
return vim.eval("values(neosnippet#helpers#get_snippets())")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user