mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-03 11:32:10 +02:00
Nixvim config update: +Snacks, -telescope
This commit is contained in:
34
home/programs/nvim/plugins/snacks.nix
Normal file
34
home/programs/nvim/plugins/snacks.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
settings = {
|
||||
image = {
|
||||
enable = true;
|
||||
doc = { inline = false; };
|
||||
};
|
||||
quickfile.enable = true;
|
||||
statuscolumn.enable = true;
|
||||
zen.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>uz";
|
||||
action = "<cmd>lua Snacks.zen()<cr>";
|
||||
options.desc = "Zen";
|
||||
}
|
||||
{
|
||||
key = "<leader>ud";
|
||||
action = "<cmd>lua Snacks.dim.enable()<cr>";
|
||||
options.desc = "Dim";
|
||||
}
|
||||
{
|
||||
key = "<leader>uD";
|
||||
action = "<cmd>lua Snacks.dim.disable()<cr>";
|
||||
options.desc = "Undim";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user