Skip to content

aiokaizen/arvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARVIM

Description

This is an nvim configuration created from scratch and that is optimized for python development.

Requirements

  1. Install xclip (Necessary for system clipboard sync)
  2. Install ripgrep (rg) to enable fuzzy finding within telescope.
  3. Install lazygit (Optional) for better git support in nvim. for complete installation instructions or for other os systems, checkout the documentation
  4. Install fd for better support with telescope.
  5. Install node

Code

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

Installation

  1. 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
  1. Clone the repository
git clone https://github.com/aiokaizen/arvim.git ~/.config/nvim
  1. Start neovim using the nvim command. This will install lazy.nvim and all its dependancies.

Options

Keymaps

Folding

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

About

Custom NVIM configuration optimized for python programming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages