Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix register plugin #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions rplugin/python3/vim_pudb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -237,6 +235,10 @@ def launchdebugtab(self):
# autocmd FileType python nnoremap <silent> <leader>td :tabnew
# term://source ${HOME}/.virtualenvs/$(cat .dbve)/bin/activate
# && python -mpudb %<CR>:startinsert<CR>

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())
Expand All @@ -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):
Expand Down