Prettify the output with some syntax and quiet option
This commit is contained in:
parent
4144631d03
commit
000f7a9232
8 changed files with 146 additions and 78 deletions
|
|
@ -621,8 +621,7 @@ def SetSyntax( current_syntax, syntax, *args ):
|
|||
# doesn't actually trigger the Syntax autocommand, and i'm not sure that
|
||||
# 'doautocmd Syntax' is the right solution or not
|
||||
for buf in args:
|
||||
with AnyWindowForBuffer( buf ):
|
||||
vim.command( 'set syntax={}'.format( Escape( syntax ) ) )
|
||||
Call( 'setbufvar', buf.number, '&syntax', syntax )
|
||||
|
||||
return syntax
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue