Compare commits

..

2 commits

4 changed files with 72 additions and 30 deletions

View file

@ -11,7 +11,6 @@
./plugins/cmp/cmp.nix
# Editor plugins and configurations
./plugins/editor/bufdelete.nix
./plugins/editor/comment.nix
./plugins/editor/treesitter.nix

View file

@ -10,5 +10,77 @@
silent = true;
};
}
{ # focus window left
mode = ["n"];
key = "<C-Left>";
action = "<C-w>h";
options = {
silent = true;
};
}
{ # focus window down
mode = ["n"];
key = "<C-Down>";
action = "<C-w>j";
options = {
silent = true;
};
}
{ # focus window up
mode = ["n"];
key = "<C-Up>";
action = "<C-w>k";
options = {
silent = true;
};
}
{ # focus window right
mode = ["n"];
key = "<C-Right>";
action = "<C-w>l";
options = {
silent = true;
};
}
{ # buffer prefix
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{ # goto next buffer
mode = ["n"];
key = "<leader>bn";
action = ":bnext<cr>";
options = {
silent = true;
};
}
{ # goto previous buffer
mode = ["n"];
key = "<leader>bp";
action = ":bprevious<cr>";
options = {
silent = true;
};
}
{ # delete buffer
mode = ["n"];
key = "<leader>bd";
action = ":bdelete<cr>";
options = {
silent = true;
};
}
];
}

View file

@ -1,20 +0,0 @@
{...}: {
plugins.bufdelete = {
enable = true;
};
keymaps = [
{
mode = "n";
key = "<leader>bd";
action = "<cmd>Bdelete<cr>";
options.desc = "Buffer Delete";
}
{
mode = "n";
key = "<leader>bw";
action = "<cmd>Bwipeout<cr>";
options.desc = "Buffer Wipeout";
}
];
}

View file

@ -14,15 +14,6 @@
};
}
{
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{
mode = ["n" "v"];
key = "<leader>c";