From d749bb412a03db63b6d98890a4557f0c6b1c921c Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Wed, 7 Aug 2024 20:12:27 +0300 Subject: [PATCH] chore: update repro script to use recommended commands (#337) --- repro.lua | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/repro.lua b/repro.lua index b8e47234..534f3cd7 100644 --- a/repro.lua +++ b/repro.lua @@ -33,15 +33,22 @@ local plugins = { 'mikavilpas/yazi.nvim', event = 'VeryLazy', keys = { - { - -- 👇 choose your own keymapping - 'fy', - function() - require('yazi').yazi() - end, - - { desc = 'Open the file manager' }, - }, + '-', + 'Yazi', + desc = 'Open yazi at the current file', + }, + { + -- Open in the current working directory + 'cw', + 'Yazi cwd', + desc = "Open the file manager in nvim's working directory", + }, + { + -- NOTE: this requires a version of yazi that includes + -- https://github.com/sxyazi/yazi/pull/1305 from 2024-07-18 + '', + 'Yazi toggle', + desc = 'Resume the last yazi session', }, ---@type YaziConfig opts = {