Skip to content

Commit b1491eb

Browse files
committed
feat!: Remove mini.files
1 parent 61193f2 commit b1491eb

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

lua/core/plugins/mini.lua

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -44,48 +44,6 @@ return {
4444
event = { "BufReadPre", "BufNewFile" },
4545
},
4646

47-
{
48-
"echasnovski/mini.files",
49-
opts = {
50-
windows = {
51-
-- Whether to show preview of directory under cursor
52-
preview = true,
53-
},
54-
},
55-
config = function(_, opts)
56-
local show_dotfiles = true
57-
local filter_show = function()
58-
return true
59-
end
60-
local filter_hide = function(fs_entry)
61-
return not vim.startswith(fs_entry.name, ".")
62-
end
63-
local toggle_dotfiles = function()
64-
show_dotfiles = not show_dotfiles
65-
local new_filter = show_dotfiles and filter_show or filter_hide
66-
MiniFiles.refresh({ content = { filter = new_filter } })
67-
end
68-
vim.api.nvim_create_autocmd("User", {
69-
pattern = "MiniFilesBufferCreate",
70-
callback = function(args)
71-
local buf_id = args.data.buf_id
72-
-- Tweak left-hand side of mapping to your liking
73-
vim.keymap.set("n", "H", toggle_dotfiles, { desc = "Toggle hidden files", buffer = buf_id })
74-
end,
75-
})
76-
require("mini.files").setup(opts)
77-
end,
78-
keys = {
79-
{
80-
"-",
81-
function()
82-
MiniFiles.open()
83-
end,
84-
desc = "Open Mini Files",
85-
},
86-
},
87-
},
88-
8947
{
9048
"echasnovski/mini.ai",
9149
dependencies = {

0 commit comments

Comments
 (0)