refactor + add some QoL plugins
This commit is contained in:
parent
526e41767c
commit
f42c1c8fdf
15 changed files with 113 additions and 138 deletions
19
config/plugins/collections/mini.nix
Normal file
19
config/plugins/collections/mini.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{...}:{
|
||||
plugins.mini = {
|
||||
enable = true;
|
||||
|
||||
# Extend and create a/i textobjects.
|
||||
modules.ai = {
|
||||
# Number of lines within which textobject is searched
|
||||
n_lines = 50;
|
||||
|
||||
# How to search for object
|
||||
search_method = "cover_or_next";
|
||||
};
|
||||
|
||||
# Go forward/backward with square brackets.
|
||||
modules.bracketed = { };
|
||||
|
||||
modules.align = { };
|
||||
};
|
||||
}
|
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