mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/javascript: fix tern's project detection (use projectile instead)
This commit is contained in:
@ -84,7 +84,11 @@
|
|||||||
|
|
||||||
(def-package! tern
|
(def-package! tern
|
||||||
:commands tern-mode
|
:commands tern-mode
|
||||||
:init (add-hook 'js2-mode-hook 'tern-mode))
|
:init (add-hook 'js2-mode-hook 'tern-mode)
|
||||||
|
:config
|
||||||
|
;; Fix project detection
|
||||||
|
(defun +javascript*tern-project-dir (&rest _) (doom-project-root))
|
||||||
|
(advice-add 'tern-project-dir :override '+javascript*tern-project-dir))
|
||||||
|
|
||||||
|
|
||||||
(def-package! company-tern
|
(def-package! company-tern
|
||||||
|
Reference in New Issue
Block a user