示例#1
0
 def gdb_init(self, args):
     '''Command GdbInit.'''
     # Prepare configuration: keymaps, hooks, parameters etc.
     common = BaseCommon(self.vim, self.logger, Config(self))
     app = App(common, *args)
     self.apps[self.vim.current.tabpage.handle] = app
     app.start()
示例#2
0
 def __init__(self, vim):
     """ctor."""
     logging.config.dictConfig(LOGGING_CONFIG)
     common = BaseCommon(vim, None)
     super().__init__(common)
     self.apps: Dict[int, App] = {}
     self.ansi_escaper = re.compile(r'\x1B[@-_][0-?]*[ -/]*[@-~]')
示例#3
0
 def __init__(self, vim):
     """ctor."""
     logging.config.dictConfig(LOGGING_CONFIG)
     # self.logger.info("Plugin initialized vim=%x", vim)
     common = BaseCommon(vim, None)
     super().__init__(common)
     self.apps: Dict[int, App] = {}
     self.ansi_escaper = re.compile(r'\x1B[@-_][0-?]*[ -/]*[@-~]')
     self.efmmgr = None
     self.breakpoints = {}
示例#4
0
 def gdb_init(self, args):
     """Handle the command GdbInit."""
     # Prepare configuration: keymaps, hooks, parameters etc.
     common = BaseCommon(self.vim, Config(self))
     app = App(common, *args)
     self.apps[self.vim.current.tabpage.handle] = app
     app.start()
     if len(self.apps) == 1:
         # Initialize the UI commands, autocommands etc
         self.vim.call("nvimgdb#GlobalInit")
示例#5
0
 def gdb_init(self, args):
     """Handle the command GdbInit."""
     # Prepare configuration: keymaps, hooks, parameters etc.
     # self.logger.info("***** GdbInit vim=%s", str(vim))
     common = BaseCommon(self.vim, Config(self))
     if not self.apps:
         self.efmmgr = EfmMgr(common)
     app = App(common, self.efmmgr, *args)
     self.apps[self.vim.current.tabpage.handle] = app
     app.start()
     if len(self.apps) == 1:
         # Initialize the UI commands, autocommands etc
         self.vim.call("nvimgdb#GlobalInit")
示例#6
0
 def __init__(self, vim):
     common = BaseCommon(vim, Logger(), None)
     super().__init__(common)
     self.apps = {}
示例#7
0
 def __init__(self, vim):
     common = BaseCommon(vim, Logger(), None)
     super().__init__(common)
     self.apps = {}
     self.ansi_escaper = re.compile(r'\x1B[@-_][0-?]*[ -/]*[@-~]')