A powerful but tastefully minimal Neovim configuration in a single file. No plugin manager. No bloat.
Author: Radley E. Sidwell-Lewis
- Neovim
0.12or later - A Nerd Font (FiraCode Nerd Font recommended)
git,ripgrep,fzf,fdgo(forefm-langserver)
mkdir -p ~/.config/nvim && curl -fsSL https://raw.githubusercontent.com/radleylewis/nvim-lite/main/init.lua -o ~/.config/nvim/init.luaNote: If you already have a Neovim config, back it up first.
Neovim 0.12 and the Treesitter CLI:
sudo pacman -S neovim tree-sitter-cliGo (required by efm-langserver for linting and formatting):
sudo pacman -S goLuaSnip (native C dependency for snippet expansion):
sudo pacman -S lua-jsregexpGeneral utilities:
sudo pacman -S git ripgrep fzf fdLSP servers are managed via Mason. On first launch, open Neovim and run :Mason to install the servers you need.
Note:
rust_analyzeris managed automatically byrustaceanvimviarustup. Install it withrustup component add rust-analyzerrather than through Mason.
- Single
init.lua— no plugin manager, uses Neovim's nativevim.pack - Treesitter syntax highlighting and folding
- LSP via
nvim-lspconfigwithblink.cmpfor completion - Linting and formatting via
efm-langserver - Rust support via
rustaceanvim - Fuzzy finding via
fzf-lua - File tree via
nvim-tree - Git integration via
mini.diffandmini.git - Floating terminal (
<leader>t) - Obsidian note-taking support (optional, requires
~/Documents/Notes/) - Custom statusline with mode, branch, filetype and file size indicators
- Transparent background
| Key | Action |
|---|---|
<leader>e |
Toggle file tree |
<leader>ff |
Find files |
<leader>fg |
Live grep |
<leader>fb |
Buffers |
<leader>t |
Toggle floating terminal |
<leader>gd |
Go to definition |
<leader>ca |
Code action |
<leader>rn |
Rename symbol |
K |
Hover documentation |
]h / [h |
Next / previous git hunk |
<leader>hs |
Stage hunk |
<leader>hb |
Git blame |
<C-q> |
Close floating terminal |