refactor: LazyVim.pick

This commit is contained in:
Folke Lemaitre 2024-06-09 22:45:06 +02:00
parent 1b34b481c8
commit e29ad4a14e
6 changed files with 144 additions and 96 deletions

View file

@ -343,11 +343,11 @@ return {
header = vim.split(logo, "\n"),
-- stylua: ignore
center = {
{ action = LazyVim.telescope("files"), desc = " Find File", icon = "", key = "f" },
{ action = LazyVim.pick(), desc = " Find File", icon = "", key = "f" },
{ action = "ene | startinsert", desc = " New File", icon = "", key = "n" },
{ action = "Telescope oldfiles", desc = " Recent Files", icon = "", key = "r" },
{ action = "Telescope live_grep", desc = " Find Text", icon = "", key = "g" },
{ action = [[lua LazyVim.telescope.config_files()()]], desc = " Config", icon = "", key = "c" },
{ action = LazyVim.pick("oldfiles"), desc = " Recent Files", icon = "", key = "r" },
{ action = LazyVim.pick("live_grep"), desc = " Find Text", icon = "", key = "g" },
{ action = LazyVim.pick.config_files(), desc = " Config", icon = "", key = "c" },
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = "", key = "s" },
{ action = "LazyExtras", desc = " Lazy Extras", icon = "", key = "x" },
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" },