fix:fix show hello when open nvim in topleft

This commit is contained in:
zhaogang
2023-02-03 14:37:42 +08:00
parent 9c02367a2e
commit 0e4eab524c

View File

@@ -2999,7 +2999,7 @@ local function Setup(cfg)
-- M.Cfg.rg_pcre = os.execute("echo 'hello' | rg --pcr2 hello &> /dev/null") or false -- M.Cfg.rg_pcre = os.execute("echo 'hello' | rg --pcr2 hello &> /dev/null") or false
M.Cfg.rg_pcre = false M.Cfg.rg_pcre = false
local has_pcre = os.execute("echo 'hello' | rg --pcre2 hello &> /dev/null") local has_pcre = os.execute("echo 'hello' | rg --pcre2 hello > /dev/null 2>&1")
if has_pcre == 0 then if has_pcre == 0 then
M.Cfg.rg_pcre = true M.Cfg.rg_pcre = true
end end