From 1312e21291c4a89eff9271a1c78ccaf94d704453 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 22 Mar 2025 01:37:37 +0800 Subject: [PATCH] feat(nvf): make ctrl BS delete whole word --- users/modules/programs/nvf.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/users/modules/programs/nvf.nix b/users/modules/programs/nvf.nix index a2946fe..aa6a49e 100644 --- a/users/modules/programs/nvf.nix +++ b/users/modules/programs/nvf.nix @@ -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:e "; silent = true; } + { + desc = "Delete the previous word."; + key = ""; + mode = "i"; + action = ""; + silent = true; + } ]; luaConfigRC.turn_off_inline_diagnostics = # lua