You've already forked dotfiles
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
This commit is contained in:
28
lsp_check.sh
Executable file
28
lsp_check.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user