Files
dotfiles/lsp_check.sh
FaultyBranches 86475a8e8e feat: Removing nvim-lspconfig and starting the removal of Mason, adding
in LSP definitions for servers that are used, adding in a script to
check for LSPs, removing some extraneous items in the tmux conf, moving
autopairs to its own file
2026-08-16 20:19:05 -05:00

29 lines
633 B
Bash
Executable File

#!/usr/bin/env bash
GREEN='\033[0;32m'
RED='\033[0;31m'
CLEAR='\033[0m'
declare -A lsp_arr=(
["pylsp"]="Install the pylsp provider: python-language-server or pylsp"
["pylint"]="Install the pylint provider: pylint"
["rust-analyzer"]="Install the rust-analyzer provider"
["pyright"]="Install the pyright provider"
)
echo '----- Checking for LSP servers...'
for lsp in "${!lsp_arr[@]}"; do
echo
echo "Checking for $lsp..."
which $lsp >/dev/null 2>&1
if [[ $? -eq 1 ]]; then
echo -e "${RED} ${lsp_arr[$lsp]} ${CLEAR}"
else
echo -e "${GREEN} Found $lsp ${CLEAR}"
fi
done
echo