Henrik Lissner 2020-06-05 01:19:03 -04:00
parent 8089b5b723
commit 85883facf5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 12 additions and 11 deletions

View file

@ -207,13 +207,14 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
;; of its own, on top of the defaults.
(setq ivy-initial-inputs-alist nil)
;; REVIEW Fix #3215: prevents mingw throwing an error trying to expand / to an
;; absolute path. Remove this when it is fixed upstream in counsel.
(when (memq system-type '(windows-nt ms-dos))
(setq counsel-rg-base-command
(replace-regexp-in-string "--path-separator / "
"--path-separator // "
counsel-rg-base-command)))
;; REVIEW Fix #3215: prevents mingw on Windows throwing an error trying to
;; expand / to an absolute path. Remove this when it is fixed upstream
;; in counsel.
(when (and (memq system-type '(windows-nt ms-dos))
(listp counsel-rg-base-command)
(member "--path-separator" counsel-rg-base-command))
(setf (cadr (member "--path-separator" counsel-rg-base-command))
"//"))
;; Integrate with `helpful'
(setq counsel-describe-function-function #'helpful-callable