Commit 9c0e4fc8a3fc

Vincent Demeester <vincent@sbr.pm>
2020-01-19 15:15:12
setup-completion.el: move vde/rg-arguments
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 618a9b6
Changed files (1)
lisp/setup-completion.el
@@ -78,6 +78,16 @@ Otherwise, use `counsel-projectile-switch-project'."
   :config
   (prescient-persist-mode 1))
 
+;;; Default rg arguments
+;; https://github.com/BurntSushi/ripgrep
+(defconst vde/rg-arguments
+  `("--no-ignore-vcs"                   ;Ignore files/dirs ONLY from `.ignore'
+    "--line-number"                     ;Line numbers
+    "--smart-case"
+    "--max-columns" "150"      ;Emacs doesn't handle long line lengths very well
+    "--ignore-file" ,(expand-file-name ".ignore" (getenv "HOME")))
+  "Default rg arguments used in the functions in `counsel' and `projectile' packages.")
+
 (use-package ivy-prescient
   :after (prescient ivy)
   :custom