output: add extraPackagesAfter option

Allow users to add packages to the end of `PATH` in the neovim wrapper.
This is useful for LSP versions that might need to be overriden based on
the environment, e.g. `haskell-language-server` versions provided by a
project's devshell.
This commit is contained in:
sportshead 2025-06-08 13:14:17 +01:00
parent 00524c7935
commit e81aeacb39
No known key found for this signature in database
GPG key ID: A874DB2CBFD3CFD0
3 changed files with 23 additions and 1 deletions

View file

@ -149,4 +149,16 @@
end
'';
};
extraPackagesAfter =
{ pkgs, ... }:
{
extraPackagesAfter = [ pkgs.hello ];
extraConfigLua = ''
if vim.fn.executable("hello") ~= 1 then
print("Unable to find hello package.")
end
'';
};
}