From 68ed1a68693ee7eb1cf76bf93028ef7dd43939ee Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 13 Sep 2025 23:04:01 +0900 Subject: deleted plugins/lf.lua, created plugins/yazi.lua, created plugins/yazi.lua --- .../TheSiahxyz/lua/TheSiahxyz/plugins/yazi.lua | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/yazi.lua (limited to 'mac') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/yazi.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/yazi.lua new file mode 100644 index 0000000..972ae71 --- /dev/null +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/yazi.lua @@ -0,0 +1,47 @@ +return { + "mikavilpas/yazi.nvim", + version = "*", -- use the latest stable version + event = "VeryLazy", + dependencies = { + { "nvim-lua/plenary.nvim", lazy = true }, + }, + keys = { + { + "ey", + mode = { "n", "v" }, + "Yazi", + desc = "Open yazi at the current file", + }, + { + -- Open in the current working directory + "eY", + "Yazi cwd", + desc = "Open the file manager in nvim's working directory", + }, + { + "zy", + "Yazi toggle", + desc = "Resume the last yazi session", + }, + }, + ---@type YaziConfig | {} + opts = { + -- if you want to open yazi instead of netrw, see below for more info + open_for_directories = false, + keymaps = { + show_help = "", + }, + }, + -- 👇 if you use `open_for_directories=true`, this is recommended + init = function() + -- mark netrw as loaded so it's not loaded at all. + -- + -- More details: https://github.com/mikavilpas/yazi.nvim/issues/802 + vim.g.loaded_netrwPlugin = 1 + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "ey", group = "Yazi" }, + }) + end, +} -- cgit v1.2.3