feat(nvf): make ctrl BS delete whole word

This commit is contained in:
Mohammad Rafiq 2025-03-22 01:37:37 +08:00
parent 33aafeced9
commit 1312e21291
No known key found for this signature in database

View file

@ -42,11 +42,19 @@
};
keymaps = [
{
desc = "Open the file path under the cursor, making the file if it doesn't exist.";
key = "gf";
mode = "n";
action = ":cd %:p:h<CR>:e <cfile><CR>";
silent = true;
}
{
desc = "Delete the previous word.";
key = "<C-BS>";
mode = "i";
action = "<C-W>";
silent = true;
}
];
luaConfigRC.turn_off_inline_diagnostics =
# lua