callmekohei's blog

callmekoheiのひとりごと

easy debug with deoplete source

Summary

easy debug with deoplete source

Method

(step 1) use debug function

from .base import Base
from deoplete.util import debug # <--- point!!!

class Source(Base):
    def __init__(self, vim):
        super().__init__(vim)
        self.name = 'callmekohei'
        self.mark = '[callmekohei]'
        self.filetypes = ['text']

    def gather_candidates(self, context):
        debug(self.vim,"callmekohei") # <--- point!!!
        return ["apple","banana","cherry"]


(step 2)

: set cmdhight=3