dotfiles-ansible/roles/nvim/files/nvim/scripts/lint/markdownlint

13 lines
279 B
Bash
Executable File

#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lint/markdownlint"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && yarn init -y || true
yarn add markdownlint-cli@latest
cd ${current_path}