From 95146e2cdf7e6d84229edcb81ecc2939de1fd68d Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 20 May 2025 11:32:27 +0800 Subject: [PATCH] feat(nvf): add keymap to create file under cursor --- modules/home/cli/editor/nvf.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/home/cli/editor/nvf.nix b/modules/home/cli/editor/nvf.nix index 94ab4ae..1a5164e 100644 --- a/modules/home/cli/editor/nvf.nix +++ b/modules/home/cli/editor/nvf.nix @@ -5,6 +5,15 @@ programs.nvf = { enable = true; settings.vim = { + 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; + } + ]; utility.yazi-nvim = { enable = true; mappings = {