mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
add black python formatter (#182)
This commit is contained in:
parent
8ce7e8d800
commit
4f9a07d428
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ local flake8 = {
|
|||
local isort = {formatCommand = "isort --quiet -", formatStdin = true}
|
||||
|
||||
local yapf = {formatCommand = "yapf --quiet", formatStdin = true}
|
||||
local black = {formatCommand = "black --quiet --stdin-filename ", formatStdin = true}
|
||||
|
||||
if O.python.linter == 'flake8' then
|
||||
table.insert(python_arguments, flake8)
|
||||
|
@ -20,6 +21,8 @@ end
|
|||
|
||||
if O.python.formatter == 'yapf' then
|
||||
table.insert(python_arguments, yapf)
|
||||
elseif O.python.formatter == 'black' then
|
||||
table.insert(python_arguments, black)
|
||||
end
|
||||
|
||||
if O.python.isort then
|
||||
|
|
Loading…
Reference in a new issue