migrate to dotter
This commit is contained in:
parent
c5618f2f2c
commit
23b6c0a596
265 changed files with 62 additions and 3125 deletions
43
configs/nvim/lua/aleidk/plugins/file-explorer.lua
Normal file
43
configs/nvim/lua/aleidk/plugins/file-explorer.lua
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
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-\\>",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue