Isolated Install#
Use this when you want one config or worktree to run without touching your default Neovim state.
Use this repo’s wrappers#
From a worktree under ~/.config/, run:
./nvim
./nvim-init
./nvim-init --reset
The wrappers do four things for you:
Resolve
NVIM_APPNAMEfrom the worktree path throughnvim.env.Export
VVN_NVIM_PROFILEwith defaultstandard.Prefer a repo-local
nvim-appimageand otherwise fall back to/usr/bin/nvim.Let
./nvim-init --resetremove the app-local data and state directories before+Lazy! restorerebuilds them.
Use NVIM_APPNAME for another config#
For Bash, create a small wrapper script:
#!/usr/bin/env bash
NVIM_APPNAME="pvim" /usr/bin/nvim "$@"
For Fish, create a shell function:
function pvim
NVIM_APPNAME="pvim" /usr/bin/nvim $argv
end
The binary path can be /usr/bin/nvim, a versioned AppImage such as
~/.local/bin/nvim-v0.12.1, or another wrapper script.
Try another config#
Let us say we want to try kickstart.nvim without affecting our own setup.
git clone https://github.com/nvim-lua/kickstart.nvim ~/.config/kickstart.nvim
function kvim
NVIM_APPNAME="kickstart.nvim" ~/.local/bin/nvim-v0.12.1 $argv
end
We now have both kvim and nvim available to use.