re-structure neovim plugins
also delete unused ones
This commit is contained in:
parent
ea5957f6d4
commit
071be15dc1
47 changed files with 155 additions and 274 deletions
44
config/nvim/lua/aleidk/plugins-base/file-explorer.lua
Normal file
44
config/nvim/lua/aleidk/plugins-base/file-explorer.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
---@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>E",
|
||||
"<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-\\>",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue