mirror of
https://github.com/wellle/tmux-complete.vim.git
synced 2025-12-21 12:19:32 +01:00
Add deoplete.nvim integration
This commit is contained in:
16
rplugin/python3/deoplete/sources/tmuxcomplete.py
Normal file
16
rplugin/python3/deoplete/sources/tmuxcomplete.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from .base import Base
|
||||
|
||||
import deoplete.util
|
||||
|
||||
class Source(Base):
|
||||
def __init__(self, vim):
|
||||
Base.__init__(self, vim)
|
||||
|
||||
self.name = 'tmux-complete'
|
||||
self.kind = 'keyword'
|
||||
self.mark = '[tmux]'
|
||||
self.rank = 4
|
||||
|
||||
def gather_candidates(self, context):
|
||||
return [{ 'word': x } for x in
|
||||
self.vim.call('tmuxcomplete#gather_candidates')]
|
||||
Reference in New Issue
Block a user