2023-09-12 23:38:01 +02:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; completion/vertico/doctor.el
|
|
|
|
|
|
|
|
(dolist (module '(ivy helm ido))
|
|
|
|
(when (doom-module-p :completion module)
|
|
|
|
(error! "This module is incompatible with :completion %s; disable one or the other"
|
|
|
|
module)))
|
2021-08-10 18:29:49 +03:00
|
|
|
|
2022-09-16 17:33:44 +02:00
|
|
|
(when (require 'consult nil t)
|
|
|
|
;; FIXME: This throws an error if grep is missing.
|
|
|
|
(unless (consult--grep-lookahead-p "grep" "-P")
|
|
|
|
(warn! "The installed grep binary was not built with support for PCRE lookaheads")
|
|
|
|
(explain! "Some advanced consult filtering features will not work as a result, see the module readme."))
|
2021-08-10 18:29:49 +03:00
|
|
|
|
2022-09-16 17:33:44 +02:00
|
|
|
;; TODO: Move this to core in v3.0
|
|
|
|
(unless (consult--grep-lookahead-p "rg" "-P")
|
|
|
|
(warn! "The installed ripgrep binary was not built with support for PCRE lookaheads.")
|
|
|
|
(explain! "Some advanced consult filtering features will not work as a result, see the module readme.")))
|