From 26be35531b6528d5436477e6442bc2f76a871d0e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 3 Jun 2026 09:48:54 -0500 Subject: [PATCH] neovim-require-check-hook: discover modules from output Automatic discovery previously scanned src, but install hooks can move Lua modules before neovimRequireCheckHook runs. Scan out instead so require checks cover the installed plugin layout. --- .../editors/vim/plugins/hooks/neovim-require-check-hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/hooks/neovim-require-check-hook.sh b/pkgs/applications/editors/vim/plugins/hooks/neovim-require-check-hook.sh index 60e6d6758198..bd3ea95e9470 100644 --- a/pkgs/applications/editors/vim/plugins/hooks/neovim-require-check-hook.sh +++ b/pkgs/applications/editors/vim/plugins/hooks/neovim-require-check-hook.sh @@ -4,7 +4,7 @@ echo "Sourcing neovim-require-check-hook.sh" # Discover modules automatically if nvimRequireCheck is not set discover_modules() { - echo "Running module discovery in source directory..." + echo "Running module discovery in output directory..." # Create unique lists so we can organize later modules=() @@ -30,7 +30,7 @@ discover_modules() { echo "$lua_file" modules+=("${BASH_REMATCH[1]}") fi - done < <(find "$src" -name '*.lua' | xargs -n 1 realpath --relative-to="$src") + done < <(find "$out" -name '*.lua' -exec realpath --relative-to="$out" {} +) nvimRequireCheck=("${modules[@]}") echo "Discovered modules: ${nvimRequireCheck[*]}"