AutoYADM commit: 2024-11-22 02:18:15
This commit is contained in:
parent
5f24f10427
commit
9745c8159f
38 changed files with 1122 additions and 1687 deletions
54
.config/nvim-min/lua/plugins/extend-mini-files.lua
Normal file
54
.config/nvim-min/lua/plugins/extend-mini-files.lua
Normal file
|
@ -0,0 +1,54 @@
|
|||
return {
|
||||
"echasnovski/mini.files",
|
||||
lazy = false,
|
||||
keys = {
|
||||
{
|
||||
"<leader>e",
|
||||
function()
|
||||
require("mini.files").open(vim.api.nvim_buf_get_name(0), true)
|
||||
end,
|
||||
desc = "Open mini.files (current file directory)",
|
||||
},
|
||||
{
|
||||
"<leader>fm",
|
||||
function()
|
||||
require("mini.files").open(vim.uv.cwd(), true)
|
||||
end,
|
||||
desc = "Open mini.files (cwd)",
|
||||
},
|
||||
{
|
||||
"<leader>E",
|
||||
function()
|
||||
require("mini.files").open(LazyVim.root(), true)
|
||||
end,
|
||||
desc = "Open mini.files (root)",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
content = {
|
||||
-- hide hidden files by default
|
||||
filter = function(fs_entry)
|
||||
return not vim.startswith(fs_entry.name, ".")
|
||||
end,
|
||||
},
|
||||
mappings = {
|
||||
go_in_plus = "<CR>",
|
||||
synchronize = ":w",
|
||||
-- close = "q",
|
||||
-- go_in = "i",
|
||||
-- go_out = "m",
|
||||
-- go_out_plus = "M",
|
||||
-- mark_goto = "'",
|
||||
-- mark_set = "k",
|
||||
-- reset = "<BS>",
|
||||
-- reveal_cwd = "@",
|
||||
-- show_help = "g?",
|
||||
-- trim_left = "<",
|
||||
-- trim_right = ">",
|
||||
},
|
||||
options = {
|
||||
permanent_delete = false,
|
||||
use_as_default_explorer = true,
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue