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 = " ";
|
||||
|
||||
# TODO: Move general mappings to which-key
|
||||
keymaps = [
|
||||
# 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
|
||||
{
|
||||
mode = "n";
|
||||
@ -404,6 +429,7 @@
|
||||
};
|
||||
}
|
||||
|
||||
# better indenting
|
||||
{
|
||||
mode = "v";
|
||||
key = "<";
|
||||
|
Loading…
x
Reference in New Issue
Block a user