From 0a66a3b0a3379072c699de4b10889db900e0b21c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 7 Dec 2023 00:27:30 +0800 Subject: [PATCH] docs: comment for nvim-shell --- home/base/desktop/neovim/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/base/desktop/neovim/default.nix b/home/base/desktop/neovim/default.nix index 33a3091f..46a095ac 100644 --- a/home/base/desktop/neovim/default.nix +++ b/home/base/desktop/neovim/default.nix @@ -155,8 +155,10 @@ in nvim_extra ++ [ - # NOTE: shells installed by Nix will ignore the `PATH` env passed by parent process, - # so to access the packages we installed here in neovim's shell session(`:terminal`), + # NOTE: shells installed by nix-darwin will ignore the `PATH` env passed by parent process, + # it's likely a bug of nix-darwin, `PATH` passing on NixOS works fine. + # + # So to access the packages we installed here in neovim's shell session(`:terminal`), # we have to create a shell wrapper with the packages in `PATH` env. (pkgs.runCommand "nvim-shell" rec { nativeBuildInputs =