mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 12:23:20 +00:00
languages/markdown: add mdformat (#1396)
This commit is contained in:
parent
3adba94517
commit
1355f90240
2 changed files with 11 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (builtins) attrNames;
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) bool enum listOf str nullOr;
|
||||
|
|
@ -55,6 +55,14 @@
|
|||
prettierd = {
|
||||
command = getExe pkgs.prettierd;
|
||||
};
|
||||
mdformat = {
|
||||
command = getExe' (pkgs.python313Packages.python.withPackages (p:
|
||||
with p; [
|
||||
mdformat
|
||||
mdformat-gfm
|
||||
mdformat-frontmatter
|
||||
])) "mdformat";
|
||||
};
|
||||
};
|
||||
defaultDiagnosticsProvider = ["markdownlint-cli2"];
|
||||
diagnosticsProviders = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue