Recent Files Shortcut in Lunarvim
In LunarVim, you can open recent files using Telescope, a highly extendable fuzzy finder over lists. To quickly open recent files, you can use the Telescope plugin with a specific command.
Here’s a shortcut key setup to open recent files in LunarVim:
1. Open your configuration file: `space` + `L` + `c` will open the configuration file for LunarVim.
2. Add the following keybinding:
```lua
lvim.builtin.which_key.mappings["r"] = {
"<cmd>Telescope oldfiles<cr>", "Open Recent File"
}
```
3. Save the configuration: After adding the keybinding, save the file and reload your LunarVim configuration or restart LunarVim.
With this setup, you can press `space` + `r` to open the recent files menu using Telescope.
This setup assumes you are familiar with editing the LunarVim configuration and the basic usage of LunarVim.


Comments
Post a Comment