mirror of
https://github.com/runyanjake/dotfiles.git
synced 2026-02-03 16:47:29 -08:00
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
- Install latest version of Neovim (>10.4). Homebrew should have it.
brew install neovim
- 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
- Go through first time setup.
nvim
Ubuntu
- 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
- 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
- Ensure the nvim runtimepath includes
~/.config.nvim. From in Neovim, execute:
:echo &runtimepath
- 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
- 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 + eto open neo tree sidebarLEADER + f + gto open file search via rg (ripgrep)
theme.lua | folke/tokyonight.nvim
A theme I like for my nvim. Repo