From b2fb92f6adfaa1e2c79417397a74cf1ed20ce980 Mon Sep 17 00:00:00 2001 From: alegian Date: Sat, 17 Jan 2026 12:15:34 +0200 Subject: [PATCH] fix rg and find --- lua/tsc/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/tsc/utils.lua b/lua/tsc/utils.lua index ded3919..9dbe874 100644 --- a/lua/tsc/utils.lua +++ b/lua/tsc/utils.lua @@ -33,9 +33,9 @@ M.find_tsconfigs = function(run_mono_repo) local found_configs = nil if M.is_executable("rg") then - found_configs = vim.fn.system("rg -g '!node_modules' --files | rg 'tsconfig.*.json'") + found_configs = vim.fn.system("rg --files -g '!node_modules' -g 'tsconfig*.json'") else - found_configs = vim.fn.system('find . -not -path "*/node_modules/*" -name "tsconfig.*.json" -type f') + found_configs = vim.fn.system('find . -not -path "*/node_modules/*" -name "tsconfig*.json" -type f') end if found_configs == nil then