diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 9403670..56946b0 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -18,6 +18,58 @@ return { -- Collection of various small independent plugins/modules -- ... and there is more! -- Check out: https://github.com/echasnovski/mini.nvim - require("mini.files").setup() + require("mini.files").setup( + -- No need to copy this inside `setup()`. Will be used automatically. + { + -- Customization of shown content + content = { + -- Predicate for which file system entries to show + filter = nil, + -- What prefix to show to the left of file system entry + prefix = nil, + -- In which order to show file system entries + sort = nil, + }, + + -- Module mappings created only inside explorer. + -- Use `''` (empty string) to not create one. + mappings = { + close = "q", + go_in = "l", + go_in_plus = "L", + go_out = "h", + go_out_plus = "H", + reset = "", + reveal_cwd = "@", + show_help = "g?", + synchronize = "=", + trim_left = "<", + trim_right = ">", + }, + + -- General options + options = { + -- Whether to delete permanently or move into module-specific trash + permanent_delete = false, + -- Whether to use for editing directories + use_as_default_explorer = true, + }, + + -- Customization of explorer windows + windows = { + -- Maximum number of windows to show side by side + max_number = math.huge, + -- Whether to show preview of file/directory under cursor + preview = true, + -- Width of focused window + width_focus = 50, + -- Width of non-focused window + width_nofocus = 15, + -- Width of preview window + width_preview = 25, + }, + } + ) + require("mini.move").setup() end, }