mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-08 03:11:36 +00:00
languages: allow listOf format.type
This commit is contained in:
parent
a2b3010bb3
commit
70555904a0
22 changed files with 265 additions and 357 deletions
|
@ -121,7 +121,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
defaultFormat = "black";
|
||||
defaultFormat = ["black"];
|
||||
formats = {
|
||||
black = {
|
||||
command = getExe pkgs.black;
|
||||
|
@ -233,12 +233,6 @@ in {
|
|||
default = defaultFormat;
|
||||
description = "Python formatters to use";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = formats.${cfg.format.type}.package;
|
||||
description = "Python formatter package";
|
||||
};
|
||||
};
|
||||
|
||||
# TODO this implementation is very bare bones, I don't know enough python to implement everything
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue