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, + }, +}