add missing tools
This commit is contained in:
@@ -91,6 +91,22 @@ function ensure_brew_binary() {
|
|||||||
check_binary "$1"
|
check_binary "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ensure_brew_keg_binary() {
|
||||||
|
local formula_prefix
|
||||||
|
|
||||||
|
if command -v "$1" >/dev/null 2>&1; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
check_binary brew
|
||||||
|
formula_prefix=$(brew --prefix "$2")
|
||||||
|
if [ ! -x "${formula_prefix}/bin/$1" ]; then
|
||||||
|
brew install "$2"
|
||||||
|
fi
|
||||||
|
export PATH="${formula_prefix}/bin:${PATH}"
|
||||||
|
check_binary "$1"
|
||||||
|
}
|
||||||
|
|
||||||
export PATH="${HOME}/.local/bin:${PATH}"
|
export PATH="${HOME}/.local/bin:${PATH}"
|
||||||
|
|
||||||
for BINARY in "${NVIM_REQUIRED_BINARIES[@]}"; do
|
for BINARY in "${NVIM_REQUIRED_BINARIES[@]}"; do
|
||||||
@@ -108,9 +124,13 @@ fi
|
|||||||
check_binary luafmt
|
check_binary luafmt
|
||||||
|
|
||||||
if [ "${NVIM_OS}" = "macOS" ]; then
|
if [ "${NVIM_OS}" = "macOS" ]; then
|
||||||
|
ensure_brew_binary cppcheck cppcheck
|
||||||
ensure_brew_binary pwsh powershell
|
ensure_brew_binary pwsh powershell
|
||||||
ensure_brew_binary vala-language-server vala-language-server
|
ensure_brew_binary vala-language-server vala-language-server
|
||||||
|
ensure_brew_keg_binary clang-tidy llvm
|
||||||
fi
|
fi
|
||||||
|
check_binary clang-tidy
|
||||||
|
check_binary cppcheck
|
||||||
|
|
||||||
pushd "${SCRIPT_DIR}" 1>/dev/null 2>&1 || error_exit "failed to push: ${SCRIPT_DIR}"
|
pushd "${SCRIPT_DIR}" 1>/dev/null 2>&1 || error_exit "failed to push: ${SCRIPT_DIR}"
|
||||||
FNAME=cpptools-${NVIM_OS}-${NVIM_ARCH2}.vsix
|
FNAME=cpptools-${NVIM_OS}-${NVIM_ARCH2}.vsix
|
||||||
|
|||||||
Reference in New Issue
Block a user