mini_files: added integration with snacks

This commit is contained in:
Tigor Hutasuhut 2024-11-07 20:37:22 +07:00
parent 22a2c4d809
commit b8481dcb1a

View file

@ -1,4 +1,5 @@
return { return {
{
"echasnovski/mini.nvim", "echasnovski/mini.nvim",
version = false, version = false,
enabled = true, enabled = true,
@ -53,4 +54,16 @@ return {
desc = "Open/Close mini files from current file directory", desc = "Open/Close mini files from current file directory",
}, },
}, },
},
{
"folke/snacks.nvim",
init = function()
vim.api.nvim_create_autocmd("User", {
pattern = "MiniFilesActionRename",
callback = function(event)
Snacks.rename.on_rename_file(event.data.from, event.data.to)
end,
})
end,
},
} }