Install: update post install for lsp
This commit is contained in:
parent
cb50fda51a
commit
e2fd9a75fb
1 changed files with 24 additions and 1 deletions
|
@ -438,7 +438,6 @@ check_sshdconfig() {
|
|||
# Docker configs
|
||||
####################
|
||||
docker_checks() {
|
||||
check_for_docker_service
|
||||
check_for_docker_detach_keys
|
||||
}
|
||||
|
||||
|
@ -538,6 +537,29 @@ russy_build() {
|
|||
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
|
||||
russy_build || exit 1
|
||||
fi
|
||||
|
@ -557,6 +579,7 @@ if [[ "$(uname -s)" == 'Linux' ]] && [[ "$1" == 'status' || "$1" == 'build' ]];
|
|||
ssh_checks
|
||||
docker_checks
|
||||
russy_checks
|
||||
vim_checks
|
||||
else
|
||||
print_help
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue