Skip to content

Commit f7a688c

Browse files
committed
Try fixing import joining priorities for python
The import pattern should be quite specific, so giving it highest priority should not cause issues with other expressions.
1 parent 13856c6 commit f7a688c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ftplugin/python/splitjoin.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ endif
1414

1515
if !exists('b:splitjoin_join_callbacks')
1616
let b:splitjoin_join_callbacks = [
17+
\ 'sj#python#JoinImportWithNewlineEscape',
18+
\ 'sj#python#JoinImportWithRoundBrackets',
1719
\ 'sj#python#JoinMultilineString',
1820
\ 'sj#python#JoinTuple',
1921
\ 'sj#python#JoinDict',
2022
\ 'sj#python#JoinArray',
2123
\ 'sj#python#JoinTernaryAssignment',
2224
\ 'sj#python#JoinStatement',
23-
\ 'sj#python#JoinImportWithNewlineEscape',
24-
\ 'sj#python#JoinImportWithRoundBrackets',
2525
\ 'sj#python#JoinAssignment',
2626
\ ]
2727
endif

0 commit comments

Comments
 (0)