chore(mini): re-add mini.files and configure it
This commit is contained in:
3 files changed
+23
-43
No files matched your search
@@ -1,42 +0,0 @@
|
||||
return {
|
||||
{
|
||||
'echasnovski/mini.files',
|
||||
version = '*',
|
||||
event = { 'BufReadPost', 'BufNewFile' },
|
||||
config = function()
|
||||
require('mini.files').setup({
|
||||
content = {
|
||||
filter = nil,
|
||||
prefix = nil,
|
||||
sort = nil,
|
||||
},
|
||||
mappings = {
|
||||
close = 'q',
|
||||
go_in = 'L',
|
||||
go_in_plus = 'l',
|
||||
go_out = 'h',
|
||||
go_out_plus = 'H',
|
||||
mark_goto = "'",
|
||||
mark_set = 'm',
|
||||
reset = '<BS>',
|
||||
reveal_cwd = '@',
|
||||
show_help = 'g?',
|
||||
synchronize = '<CR>',
|
||||
trim_left = '<',
|
||||
trim_right = '>',
|
||||
},
|
||||
options = {
|
||||
permanent_delete = true,
|
||||
use_as_default_explorer = true,
|
||||
},
|
||||
windows = {
|
||||
max_number = math.huge,
|
||||
preview = false,
|
||||
width_focus = 30,
|
||||
width_nofocus = 20,
|
||||
width_preview = 80,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -49,6 +49,29 @@ return {
|
||||
end,
|
||||
})
|
||||
|
||||
-- files
|
||||
require('mini.files').setup({
|
||||
mappings = {
|
||||
close = 'q',
|
||||
go_in = 'L',
|
||||
go_in_plus = 'l',
|
||||
go_out = 'h',
|
||||
go_out_plus = 'H',
|
||||
mark_goto = "'",
|
||||
mark_set = 'm',
|
||||
reset = '<BS>',
|
||||
reveal_cwd = '@',
|
||||
show_help = 'g?',
|
||||
synchronize = '<CR>',
|
||||
trim_left = '<',
|
||||
trim_right = '>',
|
||||
},
|
||||
options = {
|
||||
permanent_delete = true,
|
||||
use_as_default_explorer = true,
|
||||
},
|
||||
})
|
||||
|
||||
require('mini.statusline').setup({
|
||||
use_icons = true,
|
||||
content = {
|
||||
|
||||
Reference in new issue
Block a user