feat: replace alpha, lazygit-nvim, dressing with snacks.nvim

This commit is contained in:
antoine 2026-04-18 10:06:01 +02:00
parent 7f388998c7
commit 5ee4c41721
Signed by: antoine
GPG key ID: 9EB6BAADC51B6133
5 changed files with 33 additions and 36 deletions

31
plugins/snacks.nix Normal file
View file

@ -0,0 +1,31 @@
{...}: {
vim.utility.snacks-nvim = {
enable = true;
setupOpts = {
input.enable = true;
lazygit.enable = true;
rename.enable = true;
dashboard = {
enable = true;
sections = [
{section = "header";}
{section = "keys"; gap = 1; padding = 1;}
{section = "startup";}
];
preset.keys = [
{icon = " "; key = "e"; action = ":ene | startinsert"; desc = "New file";}
{icon = " "; key = ",ff"; action = ":FzfLua files"; desc = "Find file";}
{icon = " "; key = ",fo"; action = ":FzfLua oldfiles"; desc = "Recently opened";}
{icon = " "; key = ",fg"; action = ":FzfLua live_grep"; desc = "Find word";}
{icon = " "; key = ",fp"; action = ":SessionManager load_session"; desc = "Open session";}
{icon = " "; key = "q"; action = ":qa"; desc = "Quit";}
];
};
};
};
vim.keymaps = [
{key = "<leader>gg"; mode = ["n"]; lua = true; action = "function() Snacks.lazygit() end"; desc = "LazyGit";}
];
}