aboutsummaryrefslogtreecommitdiffstats
path: root/modules/communication
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-12 01:41:26 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:50:25 +0530
commit5fe7de89abe2700aff07d031a77dad77b80e4936 (patch)
treea16821e189715cfa12975fa1f5c1288802b59e25 /modules/communication
parent864edc6a6f882034928e59b427809d811dd6dae3 (diff)
downloadhome-manager-config-5fe7de89abe2700aff07d031a77dad77b80e4936.tar.gz
home-manager-config-5fe7de89abe2700aff07d031a77dad77b80e4936.zip
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
Diffstat (limited to 'modules/communication')
-rw-r--r--modules/communication/neomutt/neomutt.nix2
1 files changed, 1 insertions, 1 deletions
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