mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
feat(extras): added extra for mini.files
This commit is contained in:
parent
69bf9e7e01
commit
e624511fa2
1 changed files with 21 additions and 0 deletions
21
lua/lazyvim/plugins/extras/editor/mini-files.lua
Normal file
21
lua/lazyvim/plugins/extras/editor/mini-files.lua
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
return {
|
||||||
|
"echasnovski/mini.files",
|
||||||
|
opts = {
|
||||||
|
windows = {
|
||||||
|
preview = true,
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
-- Whether to use for editing directories
|
||||||
|
-- Disabled by default in LazyVim because neo-tree is used for that
|
||||||
|
use_as_default_explorer = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>fm",
|
||||||
|
function()
|
||||||
|
require("mini.files").open(vim.api.nvim_buf_get_name(0), true)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue