Skip to content

Commit

Permalink
neovim-require-check-hook: fix ignore directories (NixOS#372551)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman authored Jan 10, 2025
2 parents fd862b3 + 5716880 commit 9e22f4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ discover_modules() {

while IFS= read -r lua_file; do
# Ignore certain infra directories
if [[ "$lua_file" =~ debug/|scripts?/|tests?/|spec/ || "$lua_file" =~ .*\meta.lua ]]; then
if [[ "$lua_file" =~ (^|/)(debug|script|scripts|test|tests|spec)(/|$) || "$lua_file" =~ .*\meta.lua ]]; then
continue
# Ignore optional telescope and lualine modules
elif [[ "$lua_file" =~ ^lua/telescope/_extensions/(.+)\.lua || "$lua_file" =~ ^lua/lualine/(.+)\.lua ]]; then
Expand Down

0 comments on commit 9e22f4e

Please sign in to comment.