44 lines
1.2 KiB
Lua
44 lines
1.2 KiB
Lua
---@type LazySpec
|
|
return {
|
|
"mikavilpas/yazi.nvim",
|
|
event = "VeryLazy",
|
|
keys = {
|
|
-- 👇 in this section, choose your own keymappings!
|
|
{
|
|
"<leader>e",
|
|
"<cmd>Yazi<cr>",
|
|
desc = "Open yazi at the current file",
|
|
},
|
|
{
|
|
-- Open in the current working directory
|
|
"<leader>-",
|
|
"<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
|
|
-- '<c-up>',
|
|
-- "<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 = 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-\\>",
|
|
},
|
|
},
|
|
}
|