Skip to content




nvim

https://neovim.io/

[[nvim]] setup.

Setup [[zsh]] or [[bash]] first.

nvim installation

# get the latest appimage
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage

# if the appimage does not work,
# install fuse
sudo apt install fuse
# or extract the image
./nvim.appimage --appimage-extract
./squashfs-root/AppRun --version

# Optional: exposing nvim globally.
sudo mv squashfs-root /
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
nvim

lazyvim

https://www.lazyvim.org/

LazyVim is a Neovim setup powered by 💤 lazy.nvim to make it easy to customize and extend your config.

requirements

  • nvim >= 0.9.0
  • git >= 2.19.0
  • nerdfont v3.0+
  • lazygit
  • gcc and libstdc++6 in case of debian for tree-sitter
  • ripgrep and fd-find in case of debian for telescope
  • unzip for mason to install things such as stylua
sudo apt install git gcc libstdc++6 ripgrep fd-find unzip

# lazygit for ubuntu? works for debian as well?
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/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin

installation

mkdir -p .config/nvim
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git

plugins and options

  • add catppuccin gruvbox color theme
  • add FTerm (requires $SHELL) - learnt that lazyvim has terminal by default (ctrl+/)
  • disable "s" keymap used by flash from lazyvim default
  • add vim-fugitive
  • add colorizer
  • change width of neo-tree
  • add obsidian