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 +- modules/development/nixvim/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 diff --git a/modules/development/nixvim/default.nix b/modules/development/nixvim/default.nix index c493b57..bf3d143 100644 --- a/modules/development/nixvim/default.nix +++ b/modules/development/nixvim/default.nix @@ -12,7 +12,7 @@ package = lib.mkOption { type = lib.types.package; readOnly = true; - default = config.programs.nixvim.package; + default = config.programs.nixvim.build.package; description = "The nixvim package to use."; }; }; -- cgit v1.2.3