From 6c840b1bc1988c2eaa95b0543527c94efbba8ada Mon Sep 17 00:00:00 2001 From: Stadnik Andrii Date: Tue, 2 Oct 2018 15:15:31 +0300 Subject: [PATCH 1/2] Fixed error on PUDBStatus --- rplugin/python3/vim_pudb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/vim_pudb.py b/rplugin/python3/vim_pudb.py index a42c04b..86b364b 100644 --- a/rplugin/python3/vim_pudb.py +++ b/rplugin/python3/vim_pudb.py @@ -253,7 +253,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): From e314d8856ba6d6b45b588ed3401bcc9bfd7b90f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Pi=C3=B3rkowski?= Date: Fri, 5 Apr 2019 21:43:25 +0200 Subject: [PATCH 2/2] Fix rplugin registerd --- rplugin/python3/vim_pudb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rplugin/python3/vim_pudb.py b/rplugin/python3/vim_pudb.py index 86b364b..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())