refactor + add some QoL plugins
This commit is contained in:
parent
526e41767c
commit
f42c1c8fdf
15 changed files with 113 additions and 138 deletions
41
config/plugins/collections/snacks.nix
Normal file
41
config/plugins/collections/snacks.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{...}:{
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
bufdelete = {
|
||||
enabled = true;
|
||||
};
|
||||
|
||||
scroll = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>q";
|
||||
action = {
|
||||
__raw = "function() require('snacks').bufdelete() end";
|
||||
};
|
||||
options = {
|
||||
desc = "Close current buffer";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>Q";
|
||||
action = {
|
||||
__raw = "function() require('snacks').bufdelete.other() end";
|
||||
};
|
||||
options = {
|
||||
desc = "Close other buffers";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue