From 6c880d65a57d8ae0c2347ba6280c4469e3cb2bf5 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 10 Jun 2023 10:17:33 -0400 Subject: [PATCH] neovim: Make startify script always work One of the beauties of Nix is that you don't have to depend on what is available in a user's $PATH. --- modules/neovim/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/neovim/default.nix b/modules/neovim/default.nix index 5638ee17..0927ff27 100644 --- a/modules/neovim/default.nix +++ b/modules/neovim/default.nix @@ -212,7 +212,7 @@ { plugin = vim-startify; config = '' - let g:startify_custom_header = startify#pad(split(system("cat (random choice (fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore))"), '\n')) + let g:startify_custom_header = startify#pad(split(system("${pkgs.fish}/bin/fish -c 'cat (random choice (${pkgs.fd}/bin/fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore))'"), '\n')) let g:startify_change_to_dir = 0