We continue our Neovim journey building upon the solid foundation from part one. In this second episode, let's take our configuration to the next level by installing and configuring powerful code awareness and navigation plugins that transform how we interact with code.
We'll begin by installing and thoroughly explaining Treesitter - Neovim's game-changing syntax parser that provides true semantic understanding of your code. Watch as we enable incremental selection, allowing you to progressively expand your selections from individual tokens to entire functions with just a few keystrokes. You'll learn how to fine-tune colors and styling using Treesitter in conjunction with our kanagawa theme, creating a visually stunning yet functionally superior coding environment.
The power of Treesitter extends even further as we integrate treesitter-textobjects, enabling you to select, modify, and navigate specific code elements with surgical precision. Need to swap function parameters or reorder table elements? Together we'll discover how to accomplish this effortlessly, saving countless keystrokes and mental overhead.
To further enhance our Neovim workflow, we'll install and configure the which-key plugin, providing an intuitive discoverable interface for all your custom keybindings. Never again will you forget that brilliant shortcut you created last month! As a special bonus requested by a viewer, I'll also install and set up showkeys - a plugin that displays keystrokes in real-time, perfect for presentations or learning new commands.
All configuration files shown in this episode are available on GitHub:
https://github.com/jakobwesthoff/nvim-from-scratch/tree/series/02
Join as we continue building a Neovim configuration that doesn't just edit text, but understands and anticipates your coding needs. Stay tuned for upcoming episodes where we'll explore LSP integration, lightning-fast autocompletion, and efficient fuzzy finding techniques.
#neovim #treesitter #programming #nvim #coding #whichkey #textobjects