feat: conform python
This commit is contained in:
parent
da940e7973
commit
563c73a409
|
@ -9,9 +9,19 @@
|
||||||
settings = {
|
settings = {
|
||||||
# Map of filetype to formatters.
|
# Map of filetype to formatters.
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
c = ["clang-format"];
|
c = [
|
||||||
lua = ["stylua"];
|
"clang-format"
|
||||||
nix = ["alejandra"];
|
];
|
||||||
|
lua = [
|
||||||
|
"stylua"
|
||||||
|
];
|
||||||
|
nix = [
|
||||||
|
"alejandra"
|
||||||
|
];
|
||||||
|
python = [
|
||||||
|
"isort"
|
||||||
|
"black"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install our formatters
|
# Install our formatters
|
||||||
|
@ -25,6 +35,12 @@
|
||||||
stylua = {
|
stylua = {
|
||||||
command = lib.getExe pkgs.stylua;
|
command = lib.getExe pkgs.stylua;
|
||||||
};
|
};
|
||||||
|
isort = {
|
||||||
|
command = lib.getExe pkgs.isort;
|
||||||
|
};
|
||||||
|
black = {
|
||||||
|
command = lib.getExe pkgs.black;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Receive notificaton when a formatter errors.
|
# Receive notificaton when a formatter errors.
|
||||||
|
|
Loading…
Reference in a new issue