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.
This commit is contained in:
Donovan Glover 2023-06-10 10:17:33 -04:00
parent 80e2052651
commit 6c880d65a5
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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