mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
21 lines
1.1 KiB
EmacsLisp
21 lines
1.1 KiB
EmacsLisp
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
;;; completion/vertico/doctor.el
|
|
|
|
(dolist (module '(ivy helm ido))
|
|
(when (doom-module-active-p :completion module)
|
|
(error! "This module is incompatible with :completion %s; disable one or the other"
|
|
module)))
|
|
|
|
(when (require 'consult nil t)
|
|
(if (executable-find "rg")
|
|
;; 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."))
|
|
(if (executable-find "grep")
|
|
(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."))
|
|
(error! "Neither grep nor ripgrep are available on this system")
|
|
(explain! "Various file and project search features won't be available"))))
|