Feat(snacks): use folke's snacks

Use folke's snacks.nvim convenience plugin
This commit is contained in:
2024-11-08 12:33:11 -05:00
parent b8cc95dfc8
commit 362b412d55
4 changed files with 177 additions and 8 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ local dashboard_buttons = {
{ key = "r", icon = "", desc = " Recent Files", action = function() require("data.func").pick("oldfiles") end },
{ key = "g", icon = "", desc = " Grep Text", action = function() require("data.func").pick("live_grep") end },
{ key = "p", icon = "󰙅 ", desc = " Pick Tree", action = function() require("data.func").pick("file_browser", "mini") end },
{ key = "z", icon = "", desc = " LazyGit", action = function() require("data.func").open_lazygit_popup() end },
{ key = "z", icon = "", desc = " LazyGit", action = function() Snacks.lazygit() end },
{ key = "c", icon = "", desc = " Config", action = function() require("data.func").pick("config_files") end },
{ key = "s", icon = "󰶮 ", desc = " Restore Session", action = function() require("persistence").load() end },
{ key = "S", icon = "", desc = " Remote Session", action = function() require("config.rootiest").load_remote() end },
-7
View File
@@ -935,13 +935,6 @@ M.lazygit = {
end,
desc = "LazyGit",
},
{ -- LazyGit
"<leader>gg",
function()
require("data.func").open_lazygit_popup()
end,
desc = "LazyGit",
},
}
---@function Helper function to toggle mini.files explorer
+7
View File
@@ -598,6 +598,13 @@ M.minifiles = {
end,
})
vim.api.nvim_create_autocmd("User", {
pattern = "MiniFilesActionRename",
callback = function(event)
Snacks.rename.on_rename_file(event.data.from, event.data.to)
end,
})
-- include git signs
require("config.minifiles")
end,