feat: add snacks nvim
This commit is contained in:
parent
0fa1d5d2e7
commit
d491a01330
2 changed files with 25 additions and 14 deletions
|
@ -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 = { };
|
||||
};
|
||||
};
|
||||
}
|
25
modules/programs/nvim/new_plugins/snacks.nix
Normal file
25
modules/programs/nvim/new_plugins/snacks.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue