fix(nvim): add some additional keybindings
This commit is contained in:
parent
2eb6fd6341
commit
722f98834a
@ -1,8 +1,6 @@
|
|||||||
# Thanks for the keybinds primeagen and folke!
|
|
||||||
{
|
{
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
|
|
||||||
# TODO: Move general mappings to which-key
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
# better up/down
|
# better up/down
|
||||||
{
|
{
|
||||||
@ -46,6 +44,33 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Clear search with <esc>
|
||||||
|
{
|
||||||
|
mode = ["i" "n"];
|
||||||
|
key = "<esc>";
|
||||||
|
action = "<cmd>noh<cr><esc>";
|
||||||
|
options = {
|
||||||
|
desc = "Escape and Clear hlsearch";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
# Add undo break-points
|
||||||
|
{
|
||||||
|
mode = "i";
|
||||||
|
key = ",";
|
||||||
|
action = ",<c-g>u";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "i";
|
||||||
|
key = ".";
|
||||||
|
action = ".<c-g>u";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "i";
|
||||||
|
key = ";";
|
||||||
|
action = ";<c-g>u";
|
||||||
|
}
|
||||||
|
|
||||||
# Move to window using the <ctrl> hjkl keys
|
# Move to window using the <ctrl> hjkl keys
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
@ -404,6 +429,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# better indenting
|
||||||
{
|
{
|
||||||
mode = "v";
|
mode = "v";
|
||||||
key = "<";
|
key = "<";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user