starter/lua/plugins/files/manager.lua

41 lines
806 B
Lua
Raw Normal View History

2024-07-04 15:22:44 +08:00
return {
2024-10-31 16:18:04 +08:00
{
"stevearc/oil.nvim",
cmd = "Oil",
opts = {},
dependencies = { "nvim-tree/nvim-web-devicons" },
},
{
"mikavilpas/yazi.nvim",
event = "VeryLazy",
opts = {
floating_window_scaling_factor = 0.5,
-- the transparency of the yazi floating window (0-100). See :h winblend
yazi_floating_window_winblend = 25,
keymaps = {
open_file_in_vertical_split = "J",
open_file_in_horizontal_split = "K",
open_file_in_tab = "L",
},
},
keys = {
{
"<leader>fm",
"<cmd>Yazi<cr>",
desc = "Open yazi at the current file",
},
{
"<leader>fM",
"<cmd>Yazi cwd<cr>",
desc = "Open the file manager in nvim's working directory",
},
{
"<leader>fy",
"<cmd>Yazi toggle<cr>",
desc = "Resume the last yazi session",
},
},
},
2024-07-04 15:22:44 +08:00
}