You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

nvim config

Personal Neovim config built on LazyVim.

Requirements

  • Neovim >= 0.9
  • Git
  • A Nerd Font (optional, for icons)
  • A terminal with true color support

Fresh install on a new machine

1. Back up any existing config

mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak

2. Clone this repo

git clone git@github.com:yourusername/nvim-config.git ~/.config/nvim

3. Open Neovim

nvim

Lazy.nvim will bootstrap itself and install all plugins automatically. Wait for it to finish, then restart nvim.


Syncing changes from another machine

cd ~/.config/nvim
git pull

Then inside nvim, run:

:Lazy sync

This installs/removes/updates plugins to match lazy-lock.json.


Repo structure

~/.config/nvim/
├── init.lua              # Entry point
├── lazy-lock.json        # Pinned plugin versions
└── lua/
    ├── config/
    │   ├── autocmds.lua  # Custom autocommands
    │   ├── keymaps.lua   # Custom keymaps
    │   └── options.lua   # Neovim options
    └── plugins/          # Plugin specs & overrides

Useful commands

Command Description
:Lazy Open plugin manager UI
:Lazy sync Sync plugins to lock file
:Lazy update Update all plugins & write lock file
:LazyHealth Check for issues
:checkhealth General Neovim health check