Merge pull request #611 from HerringtonDarkholme/deoplete
Add support for deoplete
This commit is contained in:
commit
c5a21c5097
20
rplugin/python3/deoplete/sources/ultisnips.py
Normal file
20
rplugin/python3/deoplete/sources/ultisnips.py
Normal file
@ -0,0 +1,20 @@
|
||||
from .base import Base
|
||||
|
||||
class Source(Base):
|
||||
def __init__(self, vim):
|
||||
Base.__init__(self, vim)
|
||||
|
||||
self.name = 'ultisnips'
|
||||
self.mark = '[US]'
|
||||
self.rank = 8
|
||||
|
||||
def gather_candidates(self, context):
|
||||
suggestions = []
|
||||
snippets = self.vim.eval(
|
||||
'UltiSnips#SnippetsInCurrentScope()')
|
||||
for trigger in snippets:
|
||||
suggestions.append({
|
||||
'word': trigger,
|
||||
'menu': self.mark + ' ' + snippets.get(trigger, '')
|
||||
})
|
||||
return suggestions
|
Loading…
x
Reference in New Issue
Block a user