diff --git a/rplugin/python3/vim_pudb.py b/rplugin/python3/vim_pudb.py index a42c04b..c6f0953 100644 --- a/rplugin/python3/vim_pudb.py +++ b/rplugin/python3/vim_pudb.py @@ -121,8 +121,6 @@ def __init__(self, nvim): __logger__.addHandler(nvimhandler) # define our sign command super().__init__() - self.nvim.command(':sign define {} text={} texthl={}'.format( - self.sgnname(), self.bpsymbol(), self.hlgroup())) def iter_breakpoints(self, buffname=None): """iter_breakpoints @@ -237,6 +235,10 @@ def launchdebugtab(self): # autocmd FileType python nnoremap td :tabnew # term://source ${HOME}/.virtualenvs/$(cat .dbve)/bin/activate # && python -mpudb %:startinsert + + self.nvim.command(':sign define {} text={} texthl={}'.format( + self.sgnname(), self.bpsymbol(), self.hlgroup())) + new_term_tab_cmd = 'tabnew term://{} -m pudb.run {}'.format( self.launcher(), self.entrypoint()) @@ -253,7 +255,7 @@ def pudb_status(self): __logger__.info('{}\n'.format( pprint.pformat(self._bps_placed))) __logger__.info('{}\n'.format(pprint.pformat( - [type(self), self._hlgroup, self.nvim]))) + [type(self), self.hlgroup(), self.nvim]))) @neovim.command("PUDBToggleBreakPoint", sync=False) def toggle_breakpoint_cmd(self, buffname=None):