This is an nvim configuration created from scratch and that is optimized for python development.
- Install xclip (Necessary for system clipboard sync)
- Install ripgrep (rg) to enable fuzzy finding within telescope.
- Install lazygit (Optional) for better git support in nvim. for complete installation instructions or for other os systems, checkout the documentation
- Install
fdfor better support with telescope. - Install node
sudo apt install xclip
sudo apt install ripgrep
# Install lazygit for Debian / Ubuntu
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit -D -t /usr/local/bin/
# Installing fd for telescope
apt install fd-find
# Download and install npm through nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Set the env variables for this session only, it will be automatically added to your .zshrc file.
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install npm latest version (Neened for nvim dependancies)
nvm install node # run `nvm install <VERSION>` to install a specific version (e.g. 18 for the latest patch of node18)
nvm use node # run `nvm use <VERSION>` to use a specific version of node- Backup your current nvim installation:
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
# Or delete everything if you don't need to do back
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim- Clone the repository
git clone https://github.com/aiokaizen/arvim.git ~/.config/nvim- Start neovim using the
nvimcommand. This will installlazy.nvimand all its dependancies.
| Mode | Keymap | Description | Example |
|---|---|---|---|
| Visual | z f |
Fold selection | |
| Normal | z f {motion} |
Fold motion | "Positions at oppening {" zf% |
| Normal | z o |
Open fold at the cursor. | |
| Normal | z c |
Close fold at the cursor. | |
| Normal | z a |
Toggle fold at the cursor. | |
| Normal | z d |
Delete fold at the cursor. | |
| Normal | z Shift r |
Open all folds | |
| Normal | z Shift m |
Close all folds | |
| Normal | z Shift e |
Delete all folds in window | |
| Normal | z x |
Recalculate folds in the current window |