feat(nvf): make ctrl BS delete whole word
This commit is contained in:
parent
33aafeced9
commit
1312e21291
1 changed files with 8 additions and 0 deletions
|
@ -42,11 +42,19 @@
|
||||||
};
|
};
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
|
desc = "Open the file path under the cursor, making the file if it doesn't exist.";
|
||||||
key = "gf";
|
key = "gf";
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = ":cd %:p:h<CR>:e <cfile><CR>";
|
action = ":cd %:p:h<CR>:e <cfile><CR>";
|
||||||
silent = true;
|
silent = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
desc = "Delete the previous word.";
|
||||||
|
key = "<C-BS>";
|
||||||
|
mode = "i";
|
||||||
|
action = "<C-W>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
luaConfigRC.turn_off_inline_diagnostics =
|
luaConfigRC.turn_off_inline_diagnostics =
|
||||||
# lua
|
# lua
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue