Skip to content

Instantly share code, notes, and snippets.

@lanefu
Last active March 6, 2025 20:26
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 fzf
## also forreal you can probably just use the homebrew package now
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
#!/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 fzf
### 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

make pyvenv play nice

add fd-find package

apt install fd-find
brew install fd

install debugpy mason package

:MasonInstall debugpy

install venv-selector

create file ${HOME}/.config/lvim/lua/plugins/venv-selector.lua

put this in it. from docs

return {
  "linux-cultist/venv-selector.nvim",
  dependencies = { "neovim/nvim-lspconfig", "nvim-telescope/telescope.nvim", "mfussenegger/nvim-dap-python" },
  opts = {
    -- Your options go here
    -- name = "venv",
    -- auto_refresh = false
  },
  event = "VeryLazy", -- Optional: needed only if you want to type `:VenvSelect` without a keymapping
  keys = {
    -- Keymap to open VenvSelector to pick a venv.
    { "<leader>vs", "<cmd>VenvSelect<cr>" },
    -- Keymap to retrieve the venv from a cache (the one previously used for the same project directory).
    { "<leader>vc", "<cmd>VenvSelectCached<cr>" },
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment