mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/php: prioritize phpctags in PATH
And fail more gracefully if phpctags isn't installed
This commit is contained in:
@ -74,10 +74,17 @@
|
||||
(def-package! company-php
|
||||
:when (featurep! :completion company)
|
||||
:commands (ac-php-remake-tags ac-php-remake-tags-all)
|
||||
:hook (php-mode . ac-php-core-eldoc-setup)
|
||||
:init
|
||||
(add-to-list '+php--company-backends 'company-ac-php-backend nil #'eq)
|
||||
:config (setq ac-php-tags-path (concat doom-cache-dir "ac-php/")))
|
||||
(add-hook 'php-mode-hook #'+php|init-ac-php-core-eldoc)
|
||||
:config
|
||||
(setq ac-php-tags-path (concat doom-cache-dir "ac-php/"))
|
||||
;; prioritize phpctags in PATH
|
||||
(when (file-in-directory-p ac-php-ctags-executable ac-php-root-directory)
|
||||
(setq ac-php-ctags-executable
|
||||
(or (executable-find "phpctags")
|
||||
(if (file-exists-p ac-php-ctags-executable)
|
||||
ac-php-ctags-executable)))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user