From 8a33e87bf3b0b1abaeeb38f0b4af476128858e89 Mon Sep 17 00:00:00 2001 From: StellarCoder <84800625+daUnknownCoder@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:53:52 +0530 Subject: [PATCH] Create extras/yazi.lua --- lua/lazyvim/plugins/extras/editor/yazi.lua | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/editor/yazi.lua diff --git a/lua/lazyvim/plugins/extras/editor/yazi.lua b/lua/lazyvim/plugins/extras/editor/yazi.lua new file mode 100644 index 00000000..780f127b --- /dev/null +++ b/lua/lazyvim/plugins/extras/editor/yazi.lua @@ -0,0 +1,33 @@ +return { + "mikavilpas/yazi.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + }, + enabled = function() + if vim.fn.executable("yazi") == 1 then + return true + end + return false + end, + lazy = true, + keys = { + { + "", + function() + require("yazi").yazi() + end, + desc = "Open the file manager", + }, + { + "a", + function() + require("yazi").yazi(nil, vim.fn.getcwd()) + end, + desc = "Open yazi in CWD", + }, + }, + opts = { + open_for_directories = true, + floating_window_scaling_factor = 1, + }, +}