43 lines
1.1 KiB
Lua
43 lines
1.1 KiB
Lua
return {
|
|
"mikavilpas/yazi.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
{ "nvim-lua/plenary.nvim", lazy = true },
|
|
},
|
|
-- 👇 if you use `open_for_directories=true`, this is recommended
|
|
init = function()
|
|
-- More details: https://github.com/mikavilpas/yazi.nvim/issues/802
|
|
-- vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
end,
|
|
keys = {
|
|
{
|
|
"<leader>e",
|
|
"<cmd>Yazi<cr>",
|
|
desc = "Open yazi at the current file",
|
|
},
|
|
-- {
|
|
-- -- Open in the current working directory
|
|
-- "<leader>E",
|
|
-- "<cmd>Yazi cwd<cr>",
|
|
-- desc = "Open the file manager in nvim's working directory",
|
|
-- },
|
|
},
|
|
opts = {
|
|
-- if you want to open yazi instead of netrw, see below for more info
|
|
open_for_directories = true,
|
|
open_multiple_tabs = true,
|
|
floating_window_scaling_factor = 1,
|
|
keymaps = {
|
|
show_help = '<f1>',
|
|
open_file_in_vertical_split = '<c-v>',
|
|
open_file_in_horizontal_split = '<c-s>',
|
|
open_file_in_tab = '<c-t>',
|
|
grep_in_directory = '<c-w>',
|
|
cycle_open_buffers = '<tab>',
|
|
copy_relative_path_to_selected_files = '<c-y>',
|
|
send_to_quickfix_list = '<c-q>',
|
|
change_working_directory = "<c-\\>",
|
|
},
|
|
},
|
|
}
|