chore(mini): re-add mini.files and configure it
This commit is contained in:
3 files changed
+23
-43
No files matched your search
@@ -19,7 +19,6 @@
|
|||||||
"mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" },
|
"mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
"mdx.nvim": { "branch": "main", "commit": "464a74be368dce212cff02f6305845dc7f209ab3" },
|
"mdx.nvim": { "branch": "main", "commit": "464a74be368dce212cff02f6305845dc7f209ab3" },
|
||||||
"mini.files": { "branch": "main", "commit": "49c855977e9f4821d1ed8179ed44fe098b93ea2a" },
|
|
||||||
"mini.nvim": { "branch": "main", "commit": "89eecd8b4c15f8de72dd4b5244534abed8dc086f" },
|
"mini.nvim": { "branch": "main", "commit": "89eecd8b4c15f8de72dd4b5244534abed8dc086f" },
|
||||||
"neogen": { "branch": "main", "commit": "d7f9461727751fb07f82011051338a9aba07581d" },
|
"neogen": { "branch": "main", "commit": "d7f9461727751fb07f82011051338a9aba07581d" },
|
||||||
"neoscroll.nvim": { "branch": "master", "commit": "f957373912e88579e26fdaea4735450ff2ef5c9c" },
|
"neoscroll.nvim": { "branch": "master", "commit": "f957373912e88579e26fdaea4735450ff2ef5c9c" },
|
||||||
|
|||||||
@@ -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,
|
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({
|
require('mini.statusline').setup({
|
||||||
use_icons = true,
|
use_icons = true,
|
||||||
content = {
|
content = {
|
||||||
|
|||||||
Reference in new issue
Block a user