From 5fe7de89abe2700aff07d031a77dad77b80e4936 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 12 Aug 2026 01:41:26 +0530 Subject: refactor: using the full path of nixvim for neomutt pager - Instead of relying the PATH variable for neomutt to find nvim for the pager, we use path of the final neovim configured output --- modules/communication/neomutt/neomutt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/communication/neomutt') diff --git a/modules/communication/neomutt/neomutt.nix b/modules/communication/neomutt/neomutt.nix index 7008433..1197e43 100644 --- a/modules/communication/neomutt/neomutt.nix +++ b/modules/communication/neomutt/neomutt.nix @@ -50,7 +50,7 @@ extraConfig = '' # Read messages in Neovim. `-` makes Neovim read the message from # stdin and -R prevents accidental edits to message content. - set pager = "nvim -R -n +'setlocal nolist | silent! 1,2g/^$/delete _ | nohlsearch | setlocal nomodified nomodifiable' -" + set pager = "${lib.getExe config.development.nixvim.package} -R -n +'setlocal nolist | silent! 1,2g/^$/delete _ | nohlsearch | setlocal nomodified nomodifiable' -" # Return directly to the index when Neovim exits and do not prepend # NeoMutt’s pager status line to the message passed to Neovim. set noprompt_after -- cgit v1.2.3