Nvpunk comes bundled with lots of UI elements that can help you navigate your code base.
You can view all available shortcuts by using this command:
This will open up Which Key.
Which Key also opens up whenever you start a shortcut sequence.
Most sequences start with either
z, so you can explore them easily by typing any of these keys.
The file explorer is provided by a plugin called nvim-tree.
You can toggle the explorer any time by pressing
ge, the mnemonic is Go Explorer.
Inside the explorer you can get get a list of its shortcuts by pressing
The explorer can be navigated with either keyboard or mouse.
The most important shortcuts you want to keep in mind are
iwill open the currently selected file in a horizontal split
swill open the currently selected file in a vertical split
When you have multiple splits open and open a new file, you will be prompted to choose in which split to open the file. You can select splits using numbers.
You can toggle the code outline panel by pressing
go, the mnemonic is Go Outline.
The code outline is provided by the aerial plugin.
You can access a categorized context menu that offers easy access to some shortcuts. This can be opened either by right clicking (on supported terminals) or by pressing
The context menu lists useful commands divided in categories, depending on the capabilities of the current buffer.
Every option in the context menu will also show the corresponding shortcut. You are highly encouraged to learn these shortcuts for a leaner experience.