add file explorer to replace default explorer

This commit is contained in:
2026-05-13 11:23:29 +02:00
parent b5d3dcf1ac
commit d3b7c61afd
6 changed files with 95 additions and 30 deletions

29
lua/plugins/yazi.lua Normal file
View File

@@ -0,0 +1,29 @@
return {
"mikavilpas/yazi.nvim",
event = "VeryLazy",
keys = {
-- Customize these keymaps to your liking!
{
"<leader>cd",
function()
require("yazi").yazi()
end,
desc = "Open yazi at the current file",
},
{
-- Open in the current working directory
"<leader>cw",
function()
require("yazi").yazi(nil, vim.fn.getcwd())
end,
desc = "Open yazi in cwd",
},
},
opts = {
-- if you want to replace netrw entirely with yazi
open_for_directories = true,
keymaps = {
show_help = "<f1>",
},
},
}