refactor + add some QoL plugins

This commit is contained in:
♥ Minnie ♥ 2025-06-26 11:03:40 +08:00
parent 526e41767c
commit f42c1c8fdf
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
15 changed files with 113 additions and 138 deletions

View file

@ -1,59 +0,0 @@
{...}: {
plugins.bufdelete = {
enable = true;
};
keymaps = [
{
# buffer prefix
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{
# goto next buffer
mode = ["n"];
key = "]b";
action = ":bnext<cr>";
options = {
silent = true;
};
}
{
# goto previous buffer
mode = ["n"];
key = "[b";
action = ":bprevious<cr>";
options = {
silent = true;
};
}
{
# delete buffer
mode = ["n"];
key = "<leader>bd";
action = ":Bdelete<cr>";
options = {
desc = "bdelete";
silent = true;
};
}
{
# wipeout buffer
mode = ["n"];
key = "<leader>bw";
action = ":Bwipeout<cr>";
options = {
desc = "bwipeout";
silent = true;
};
}
];
}

View file

@ -1,31 +0,0 @@
{...}:{
plugins.mini = {
enable = true;
# Extend and create a/i textobjects.
modules.ai = {
# Module mappings.
mappings = {
# Main textobject prefixes
around = "a";
inside = "i";
# Next/last variants
around_next = "an";
inside_next = "in";
around_last = "al";
inside_last = "il";
# Move cursor to corresponding edge of `a` textobject
goto_left = "g[";
goto_right = "g]";
};
# Number of lines within which textobject is searched
n_lines = 50;
# How to search for object
search_method = "cover_or_next";
};
};
}

View file

@ -18,25 +18,4 @@
# Install all grammar packages.
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
};
# Refactor modules for nvim-treesitter
plugins.treesitter-refactor = {
enable = true;
# Highlights definitions and usages.
highlightDefinitions = {
enable = true;
};
# Provides "go to usage"
navigation = {
enable = true;
# Go to the next / previous usage.
keymaps = {
gotoNextUsage = "]u";
gotoPreviousUsage = "[u";
};
};
};
}