Using shell variables like $HOME in LazyVim’s nvim-lint configuration doesn’t work as expected—the string gets passed literally instead of being expanded. To use a custom markdownlint-cli2 config file with a machine-agnostic path, use Lua’s os.getenv() function:
| |
Create your ~/.markdownlint-cli2.yaml configuration file with your preferred rules:
| |
Resources: