migrate to tpope stuff

This commit is contained in:
♥ Minnie ♥ 2025-06-22 12:50:12 +08:00
parent 1776ff3828
commit 8ae42d19fb
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 12 additions and 39 deletions

View file

@ -19,9 +19,10 @@
# Editor plugins and configurations # Editor plugins and configurations
./plugins/editor/buffers.nix ./plugins/editor/buffers.nix
./plugins/editor/comment.nix ./plugins/editor/commentary.nix
./plugins/editor/sessions.nix ./plugins/editor/sessions.nix
./plugins/editor/smart-splits.nix ./plugins/editor/smart-splits.nix
./plugins/editor/surround.nix
./plugins/editor/treesitter.nix ./plugins/editor/treesitter.nix
# UI plugins # UI plugins

View file

@ -1,38 +0,0 @@
{...}: {
plugins.comment = {
enable = true;
settings = {
toggler = {
line = "<leader>/n";
};
opleader = {
line = "<leader>/l";
block = "<leader>/b";
};
extra = {
above = "<leader>/o";
below = "<leader>/e";
eol = "<leader>/i";
};
mappings = {
basic = true;
extra = true;
};
};
};
keymaps = [
{
mode = ["n" "v"];
key = "<leader>/";
action = "<Nop>";
options = {
desc = "+comment";
};
}
];
}

View file

@ -0,0 +1,5 @@
{...}: {
plugins.commentary = {
enable = true;
};
}

View file

@ -0,0 +1,5 @@
{...}:{
plugins.vim-surround = {
enable = true;
};
}