My Ultimate LazyVim Configuration
Note to self: The Tokyo Night theme now perfectly matches the website! Check out the dynamic day/storm switching.
If you’ve spent any time in the terminal, you know that Neovim is the gold standard for modal editing. But starting from a blank init.lua can be daunting. That’s where LazyVim comes in—a modular Neovim setup that provides a solid foundation without the bloat of traditional “distributions.”
Today, I’m sharing my updated configuration, which now fully embraces the Tokyo Night aesthetic and features a highly customized workflow for navigation and window management.
The Aesthetic: Tokyo Night & Dynamic Themes
The biggest change in my recent setup is the move to Tokyo Night. What makes this special is how it integrates with my system:
- Dynamic Switching: I use a custom script that toggles between
tokyonight-dayandtokyonight-stormbased on my system’s theme mode. - Transparency: In “Storm” (Dark) mode, I keep transparency enabled to maintain that sleek terminal look.
- Visual Feedback: I’ve integrated Incline.nvim to show floating file names in the top-right corner, and nvim-highlight-colors for real-time Tailwind CSS previews.
Navigation: The “;” Telescope Workflow
I’ve moved away from standard mappings to a unified navigation system using the ; key as a prefix for Telescope. This keeps my hands on the home row and makes finding anything instantaneous.
-- Key Navigation Highlights
";f" -- Find files (hidden files included)
";r" -- Live grep (search text across project)
"\\" -- Quick buffer switching
";s" -- Treesitter symbols (jump to functions/classes)
";e" -- List Diagnostics
";;" -- Resume previous search
"sf" -- Open floating File Browser
The addition of telescope-file-browser.nvim with the sf shortcut allows me to explore the project structure without leaving my current buffer.
Efficiency: Intuitive Window & Tab Management
Managing multiple files can be a headache in Neovim. My config simplifies this with dedicated mappings for splits and tabs:
Window Splits
ss– Split window horizontally.sv– Split window vertically.sh / sj / sk / sl– Move focus between windows (Left, Down, Up, Right).Ctrl + Arrow Keys– Resize windows on the fly.
Tab Management
te– Open a new tab.<Tab>/<S-Tab>– Cycle forward and backward through tabs.- Bufferline: Configured in
tabsmode to keep the UI clean and predictable.
Web Development Power-Ups
As a web developer, I’ve tuned the LSP and tooling for maximum productivity:
- Astro Support: Full native support for
.astrofiles. - Lspsaga: Added for beautiful floating hover docs and improved code actions.
- Tailwind CSS:
nvim-highlight-colorsis set torender = "background", making Tailwind colors immediately visible in the code. - Markdown Previews:
<leader>mptoggles a live browser preview for READMEs and blog posts like this one.
Core Tweaks
I’ve also included several “quality of life” improvements to standard Vim behavior:
-- Don't yank on 'x' (delete character)
vim.keymap.set('n', 'x', '"_x')
-- Select all with Ctrl+A
vim.keymap.set('n', '<C-a>', 'gg<S-v>G')
-- Increments and Decrements
vim.keymap.set('n', '+', '<C-a>')
vim.keymap.set('n', '-', '<C-x>')
-- Smart word deletion (backwards)
vim.keymap.set('n', 'dw', 'vb"_d')
Why this setup?
This configuration isn’t just about looking good—it’s about removing friction. By unifying navigation under ;, making window management single-stroke commands, and automating theme switching, I can focus entirely on the code.
If you’re looking for a setup that feels like a modern IDE but retains the raw power of Neovim, you can find my dotfiles on GitHub.