32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{...}: {
|
|
vim.utility.snacks-nvim = {
|
|
enable = true;
|
|
setupOpts = {
|
|
input.enable = true;
|
|
lazygit.enable = true;
|
|
rename.enable = true;
|
|
picker.enable = true;
|
|
scroll.enable = true;
|
|
|
|
dashboard = {
|
|
enable = true;
|
|
sections = [
|
|
{section = "header";}
|
|
{section = "keys"; gap = 1; padding = 1;}
|
|
];
|
|
preset.keys = [
|
|
{icon = " "; key = "e"; action = ":ene | startinsert"; desc = "New file";}
|
|
{icon = " "; key = ",ff"; action = ":lua Snacks.picker.files()"; desc = "Find file";}
|
|
{icon = " "; key = ",fo"; action = ":lua Snacks.picker.recent()"; desc = "Recently opened";}
|
|
{icon = " "; key = ",fg"; action = ":lua Snacks.picker.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";}
|
|
];
|
|
}
|