Skip to content

Commit

Permalink
Support new source interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 27, 2015
1 parent 68dc06f commit 375d41e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions rplugin/python3/deoplete/sources/vimshell.py
Expand Up @@ -27,18 +27,17 @@
from .base import Base

class Source(Base):
def __init__(self):
Base.__init__(self)
def __init__(self, vim):
Base.__init__(self, vim)

self.name = 'vimshell'
self.mark = '[vimshell]'
self.filetypes = ['vimshell']

def get_complete_position(self, vim, context):
return vim.eval('vimshell#complete#get_keyword_position()')
def get_complete_position(self, context):
return self.vim.eval('vimshell#complete#get_keyword_position()')

def gather_candidates(self, vim, context):
return vim.eval('vimshell#complete#gather_candidates("'
def gather_candidates(self, context):
return self.vim.eval('vimshell#complete#gather_candidates("'
+ str(context['complete_str']) + '")')


0 comments on commit 375d41e

Please sign in to comment.