feat: add snacks nvim

This commit is contained in:
Moritz Böhme 2024-12-14 23:19:46 +01:00
parent 0fa1d5d2e7
commit d491a01330
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 25 additions and 14 deletions

View file

@ -1,14 +0,0 @@
_:
{
home-manager.users.moritz.programs.nixvim = {
keymaps = [
{ key = "<leader>g"; action = "<cmd>LazyGit<cr>"; options.desc = "Lazygit"; }
];
plugins.lazygit = {
enable = true;
settings = { };
};
};
}

View file

@ -0,0 +1,25 @@
_:
{
home-manager.users.moritz.programs.nixvim = {
keymaps = [
{
key = "<leader>g";
action.__raw = ''
function()
require("snacks").lazygit()
end
'';
options.desc = "Lazygit";
}
];
plugins.snacks = {
enable = true;
settings = {
bigfile.enable = true;
lazygit.enable = true;
};
};
};
}