Skip to content

Commit 9bff600

Browse files
authored
Merge pull request #5 from auscompgeek/tryfirst
Prefer black over other formatter plugins
2 parents ebb9b9c + 9022c15 commit 9bff600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyls_black/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from pyls import hookimpl
66

77

8-
@hookimpl
8+
@hookimpl(tryfirst=True)
99
def pyls_format_document(document):
1010
return format_document(document)
1111

1212

13-
@hookimpl
13+
@hookimpl(tryfirst=True)
1414
def pyls_format_range(document, range):
1515
range["start"]["character"] = 0
1616
range["end"]["line"] += 1

0 commit comments

Comments
 (0)