neoclide / coc-lists

Common lists for coc.nvim
264 stars 24 forks source link

rg 13.0.0 breaks `CocList grep` in nvim #121

Closed fannheyward closed 3 years ago

fannheyward commented 3 years ago
fannheyward commented 3 years ago
diff --git a/src/grep.ts b/src/grep.ts
index cfba48c..8f59df8 100644
--- a/src/grep.ts
+++ b/src/grep.ts
@@ -166,9 +166,7 @@ Grep source provide some uniformed options to ease differences between rg and ag
       args = convertOptions(args, cmd, useLiteral)
       args = args.filter(s => ['-F', '-folder', '-W', '-workspace'].indexOf(s) == -1)
     }
-    if (os.platform() == 'win32') {
-      args.push('--', './')
-    }
+    args.push('--', './')
     task.start(cmd, args, cwds, patterns)
     return task
   }

This makes it work.