Install: update post install for lsp

This commit is contained in:
Akemi Izuko 2024-08-11 16:18:38 -06:00
parent cb50fda51a
commit e2fd9a75fb
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -438,7 +438,6 @@ check_sshdconfig() {
# Docker configs # Docker configs
#################### ####################
docker_checks() { docker_checks() {
check_for_docker_service
check_for_docker_detach_keys check_for_docker_detach_keys
} }
@ -538,6 +537,29 @@ russy_build() {
fi fi
} }
####################
# Vim
####################
vim_checks() {
check_for_tsserver
}
check_for_tsserver() {
local return_code=0
if ! command -v tsserver &>/dev/null; then
printf 'ERR: tsserver vim lsp not found!\n'
printf '\tInstall using `npm install --user typescript typescript-language-server vscode-langservers-extracted flow-bin`\n'
return_code=1
fi
return $return_code
}
####################
# Main
####################
if [[ "$1" == 'build' ]]; then if [[ "$1" == 'build' ]]; then
russy_build || exit 1 russy_build || exit 1
fi fi
@ -557,6 +579,7 @@ if [[ "$(uname -s)" == 'Linux' ]] && [[ "$1" == 'status' || "$1" == 'build' ]];
ssh_checks ssh_checks
docker_checks docker_checks
russy_checks russy_checks
vim_checks
else else
print_help print_help
fi fi