Browse Source

feat(install): some tweaks regarding to requirements

my-config
NTBBloodbath 3 years ago
parent
commit
26bdd0b03e
No known key found for this signature in database GPG Key ID: 18D6730BC846AAC5
  1. 6
      install.sh

6
install.sh

@ -87,10 +87,13 @@ check_cmd() {
check_all() { check_all() {
# Install Doom Nvim (see also git) # Install Doom Nvim (see also git)
need_cmd 'curl' need_cmd 'curl'
sleep 1
# Clone repositories and install Doom Nvim # Clone repositories and install Doom Nvim
need_cmd 'git' need_cmd 'git'
sleep 1
# Install Language Server Protocols # Install Language Server Protocols
check_cmd 'npm' check_cmd 'npm'
sleep 1
check_cmd 'node' check_cmd 'node'
} }
@ -104,6 +107,7 @@ check_requirements() {
else else
log_warn "Check requirements : git" log_warn "Check requirements : git"
fi fi
sleep 1
# Checks if neovim is installed # Checks if neovim is installed
if hash "nvim" &>/dev/null; then if hash "nvim" &>/dev/null; then
@ -111,6 +115,7 @@ check_requirements() {
else else
log_warn "Check requirements : nvim" log_warn "Check requirements : nvim"
fi fi
sleep 1
# Check if nodejs and npm are installed again, # Check if nodejs and npm are installed again,
# we do not check only nodejs because some Linux distributions # we do not check only nodejs because some Linux distributions
@ -120,6 +125,7 @@ check_requirements() {
else else
log_warn "Check requirements : node (optional, required to use LSP)" log_warn "Check requirements : node (optional, required to use LSP)"
fi fi
sleep 1
if hash "npm" &>/dev/null; then if hash "npm" &>/dev/null; then
log_success "Check requirements : npm" log_success "Check requirements : npm"
else else

Loading…
Cancel
Save