32 lines
815 B
Lua
32 lines
815 B
Lua
---@type LazySpec
|
|
return {
|
|
{
|
|
"mikavilpas/yazi.nvim",
|
|
event = "VeryLazy",
|
|
keys = {
|
|
-- 👇 in this section, choose your own keymappings!
|
|
{
|
|
-- Open in the current working directory
|
|
"<leader>fM",
|
|
"<cmd>Yazi cwd<cr>",
|
|
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
|
|
"<leader>fm",
|
|
"<cmd>Yazi toggle<cr>",
|
|
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 = "<f1>",
|
|
},
|
|
},
|
|
},
|
|
}
|