Repository navigation
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·54 lines (44 loc) · 1.56 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·54 lines (44 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# This script installs all system-level dependencies for the Neovim configuration.
# It is designed for Debian/Ubuntu-based systems.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Updating package list..."
sudo apt update
# --- Build Essentials for Neovim from Source ---
echo "Installing build essentials for Neovim..."
sudo apt install -y git ninja-build gettext cmake unzip curl build-essential
# --- C++ Toolchain ---
echo "Installing C++ toolchain (g++, gdb, cmake)..."
sudo apt install -y g++ gdb # cmake is already installed above
# --- Plugin Dependencies ---
echo "Installing dependencies for Neovim plugins..."
# For nvim-treesitter (parser compilation)
sudo apt install -y nodejs npm
# For clipboard integration on X11
sudo apt install -y xclip
# For Doxygen/UML generation
sudo apt install -y doxygen graphviz
echo "--- Building Neovim from Source (Nightly) ---"
if [ -d "$HOME/git/neovim" ]; then
echo "Neovim directory already exists. Pulling latest changes..."
cd "$HOME/git/neovim"
git pull origin master
else
echo "Cloning Neovim repository..."
mkdir -p "$HOME/git"
cd "$HOME/git"
git clone https://github.com/neovim/neovim
cd neovim
fi
echo "Building Neovim..."
make clean
make CMAKE_BUILD_TYPE=RelWithDebInfo
echo "Installing Neovim..."
cd build
cpack -G DEB
sudo dpkg -i nvim-linux-x86_64.deb
echo "------------------------------------------"
echo "All dependencies installed successfully!"
echo "Neovim nightly has been built and installed."
echo "------------------------------------------"