Update nixvim keymaps and harpoon plugin

- Add indentation and line movement keymaps in visual mode
- Add keymap for adding files in harpoon plugin
This commit is contained in:
Sam 2024-11-12 16:09:09 +00:00
parent 86c59bb27b
commit d058b2cf72
2 changed files with 31 additions and 4 deletions

View File

@ -1,13 +1,11 @@
{
programs.nixvim.keymaps = [
programs.nixvim.keymaps = [
# Switching buffers
{
mode = ["n"];
action = "<C-w>h";
key = "<S-h>";
options = {
silent = true;
};
options = {silent = true;};
}
{
mode = ["n"];
@ -113,5 +111,33 @@
action = ": resize +1<CR>";
options = {noremap = true;};
}
# indent line in or out
{
mode = ["v"];
key = "<";
action = "<gv";
options = {noremap = true;};
}
{
mode = ["v"];
key = ">";
action = ">gv";
options = {noremap = true;};
}
# move selected line up or down
{
mode = ["v"];
key = "J";
action = ":m '>+1<CR>gv=gv";
options = {noremap = true;};
}
{
mode = ["v"];
key = "K";
action = ":m '<-2<CR>gv=gv";
options = {noremap = true;};
}
];
}

View File

@ -3,6 +3,7 @@
enable = true;
keymaps = {
toggleQuickMenu = "<leader>h";
addFile = "<leader>a";
};
};
}