From 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 13:13:17 +0200 Subject: yapf -rip on plugins --- plugins/code.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/code.py') diff --git a/plugins/code.py b/plugins/code.py index 69fc79ec..1c0679f2 100644 --- a/plugins/code.py +++ b/plugins/code.py @@ -30,12 +30,15 @@ from pygments.lexers import get_lexer_by_name from pygments.formatters import HtmlFormatter FORMATTER = HtmlFormatter(nowrap=True, noclasses=True) + class Plugin(BasePlugin): def init(self): - self.api.add_command('code', self.command_code, - usage=' ', - short='Sends syntax-highlighted code', - help='Sends syntax-highlighted code in the current tab') + self.api.add_command( + 'code', + self.command_code, + usage=' ', + short='Sends syntax-highlighted code', + help='Sends syntax-highlighted code in the current tab') def command_code(self, args): language, code = args.split(None, 1) -- cgit v1.2.3