Skip to content

Instantly share code, notes, and snippets.

@lanefu
Last active August 2, 2023 20:46
Show Gist options
  • Save lanefu/63881e9dc22cdb2607d3c3c22a64fb13 to your computer and use it in GitHub Desktop.
Save lanefu/63881e9dc22cdb2607d3c3c22a64fb13 to your computer and use it in GitHub Desktop.
Isolated LazyVim install for debian
#!/bin/bash
brew install xz pyenv ninja cmake gettext curl npm wget ripgrep lazygit wget
git --single-branch --branch stable clone 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
#!/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