LazyVim

My LazyVim config for Neovim.

Folder Structure

~/.config/nvim
|-- init.lua
|-- lua/
|  |-- config/
|  |  |-- aaa.lua
|  |  |-- bbb.lua
|  |  |-- ccc.lua
|  |  |-- ddd.lua
|  |-- plugins/
|     |-- xxx.lua
|     |-- yyy.lua
|       :

Setup

MacOS

  1. Install latest version of Neovim (>10.4). Homebrew should have it.
brew install neovim
  1. Create config folder and link files from the repo.
mkdir ~/.config/nvim 
ln -sfn /path/to/dotfiles/lazyvim/init.lua ~/.config/nvim/init.lua
ln -sfn /path/to/dotfiles/lazyvim/lua ~/.config/nvim/lua
  1. Go through first time setup.
nvim 

Ubuntu

  1. GCC is required for recent Neovim variants. Get it as part of build-essential, a bundle of useful build tools.
sudo apt install build-essential
  1. Get latest Neovim from Neovim Launchpad PPA becaues default repos do not have modern Neovim.
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim
  1. Ensure the nvim runtimepath includes ~/.config.nvim. From in Neovim, execute:
:echo &runtimepath
  1. Create config folder and link files from the repo.
mkdir ~/.config/nvim 
ln -sfn /path/to/dotfiles/lazyvim/init.lua ~/.config/nvim/init.lua
ln -sfn /path/to/dotfiles/lazyvim/lua ~/.config/nvim/lua
  1. Go through first time setup.
nvim 

Plugins

Plugins live in lua/plugins. Plugins can either be manually included in init.lua or managed by lazy nvim.
Each plugin gets its own lua file in there, and lazy or manual edits to init.lua can be used to configure what's enabled.

bufferline.lua | akinsho/bufferline.nvim

VS Code style top tab manager. Repo

Reminders:

  • Right click to close.

coding.lua | saghen/blink.cmp

Completion plugin for language servers. Repo

snacks.lua | folke/snacks.nvim

Snacks contains a collection of QoL plugins. I am mostly using it for ease around file system search & navigation in nvim. Repo

Reminders:

  • LEADER + e to open neo tree sidebar
  • LEADER + f + g to open file search via rg (ripgrep)

theme.lua | folke/tokyonight.nvim

A theme I like for my nvim. Repo