Last active
July 7, 2024 20:02
-
-
Save lanefu/63881e9dc22cdb2607d3c3c22a64fb13 to your computer and use it in GitHub Desktop.
Isolated LazyVim install for debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew install xz pyenv ninja cmake gettext curl npm wget ripgrep lazygit wget | |
git clone --single-branch --branch stable https://github.com/neovim/neovim | |
pushd neovim | |
git checkout stable | |
export LDFLAGS="-L/opt/homebrew/opt/curl/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/curl/include" | |
export PKG_CONFIG_PATH="/opt/homebrew/opt/curl/lib/pkgconfig" | |
make | |
make install | |
## optional if you want to install in home dir | |
make install CMAKE_INSTALL_PREFIX=${HOME}/local | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### build neovim from repo | |
sudo apt install -y build-essential cmake gettext | |
git clone https://github.com/neovim/neovim | |
pushd neovim | |
make -j8 CMAKE_BUILD_TYPE=RelWithDebInfo | |
sudo make install | |
### these packages needed for LSP support w/ plugin | |
sudo apt install -y npm python3-venv ripgrep | |
### Install LazyVim as an isolated app/installation called lvim | |
git clone https://github.com/LazyVim/starter ~/.config/lvim | |
### put this in your shell profile | |
### you need neovim 0.9.newish for the NVIM_APPNAME param to work.. | |
alias lvim="NVIM_APPNAME=lvim nvim" | |
echo you might want to install lazygit https://github.com/jesseduffield/lazygit#installation | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment