def error_vim(vim: Nvim, msg: str) -> None: throwpoint = vim.eval('v:throwpoint') if throwpoint != '': error(vim, 'v:throwpoint = ' + throwpoint) exception = vim.eval('v:exception') if exception != '': error(vim, 'v:exception = ' + exception) error_tb(vim, msg)
def __init__(self, vim: Nvim) -> None: self._vim = vim self._sign_offset = int(vim.eval("get(g:, 'coveragepy_sign_offset', 5000000)")) self._lines_with_problems: Dict[str, Set[int]] = {}
def _yank(vim: Nvim, word: str) -> None: vim.call('setreg', '"', word, 'v') if vim.call('has', 'clipboard'): vim.call('setreg', vim.eval('v:register'), word, 'v')
def __init__(self, vim: Nvim): if vim.eval("has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))"): self.editor = Editor(vim) else: self.editor = OldVim(vim) self._coverage = None