add file explorer to replace default explorer
This commit is contained in:
parent
b5d3dcf1ac
commit
d3b7c61afd
6 changed files with 95 additions and 30 deletions
29
lua/plugins/yazi.lua
Normal file
29
lua/plugins/yazi.lua
Normal 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>",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue