feat(neovim): configure markdownlint

Prevent diagnostic messages for duplicate sibling headings and line
length.
This commit is contained in:
Oliver Davies 2023-11-21 16:16:40 +00:00
parent e05aadef34
commit 249f05860f
2 changed files with 10 additions and 1 deletions

View file

@ -29,7 +29,7 @@ null_ls.setup {
end, end,
}, },
diagnostics.markdownlint.with { diagnostics.markdownlint.with {
extra_args = { "--disable", "MD013" }, extra_args = { "--config", "~/.markdownlint.yaml" },
}, },
diagnostics.php, diagnostics.php,
diagnostics.phpcs.with { diagnostics.phpcs.with {

View file

@ -243,4 +243,13 @@ in
shellcheck shellcheck
]; ];
}; };
home.file.".markdownlint.yaml".text = ''
default: true
line-length: false
no-duplicate-heading:
siblings_only: true
'';
} }