mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 04:15:18 +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
|
|
@ -169,6 +169,8 @@
|
||||||
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
|
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
|
||||||
`languages.lua`.
|
`languages.lua`.
|
||||||
|
|
||||||
|
- Added [`mdformat`](https://mdformat.rtfd.io/) support to `languages.python`.
|
||||||
|
|
||||||
- Added XML syntax highlighting, LSP support and formatting
|
- Added XML syntax highlighting, LSP support and formatting
|
||||||
|
|
||||||
- Added [tera](https://keats.github.io/tera/) language support (syntax
|
- Added [tera](https://keats.github.io/tera/) language support (syntax
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) attrNames;
|
inherit (builtins) attrNames;
|
||||||
inherit (lib.meta) getExe;
|
inherit (lib.meta) getExe getExe';
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
inherit (lib.types) bool enum listOf str nullOr;
|
inherit (lib.types) bool enum listOf str nullOr;
|
||||||
|
|
@ -55,6 +55,14 @@
|
||||||
prettierd = {
|
prettierd = {
|
||||||
command = getExe pkgs.prettierd;
|
command = getExe pkgs.prettierd;
|
||||||
};
|
};
|
||||||
|
mdformat = {
|
||||||
|
command = getExe' (pkgs.python313Packages.python.withPackages (p:
|
||||||
|
with p; [
|
||||||
|
mdformat
|
||||||
|
mdformat-gfm
|
||||||
|
mdformat-frontmatter
|
||||||
|
])) "mdformat";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
defaultDiagnosticsProvider = ["markdownlint-cli2"];
|
defaultDiagnosticsProvider = ["markdownlint-cli2"];
|
||||||
diagnosticsProviders = {
|
diagnosticsProviders = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue