2025-11-11 21:51:41 +00:00
|
|
|
---@type LazySpec
|
|
|
|
|
return {
|
|
|
|
|
'mikavilpas/yazi.nvim',
|
|
|
|
|
version = '*', -- use the latest stable version
|
|
|
|
|
event = 'VeryLazy',
|
|
|
|
|
dependencies = {
|
|
|
|
|
{ 'nvim-lua/plenary.nvim', lazy = true },
|
|
|
|
|
},
|
|
|
|
|
keys = {
|
|
|
|
|
-- 👇 in this section, choose your own keymappings!
|
|
|
|
|
{
|
|
|
|
|
'-',
|
|
|
|
|
mode = { 'n', 'v' },
|
|
|
|
|
'<cmd>Yazi<cr>',
|
|
|
|
|
desc = 'Open yazi at the current file',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
-- Open in the current working directory
|
|
|
|
|
'\\',
|
|
|
|
|
'<cmd>Yazi cwd<cr>',
|
|
|
|
|
desc = "Open the file manager in nvim's working directory",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
---@type YaziConfig | {}
|
|
|
|
|
opts = {
|
|
|
|
|
-- if you want to open yazi instead of netrw, see below for more info
|
2025-11-11 22:58:02 +00:00
|
|
|
open_for_directories = false,
|
2025-11-11 21:51:41 +00:00
|
|
|
keymaps = {
|
|
|
|
|
show_help = '<f1>',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|