lang/javascript: fix tern's project detection (use projectile instead)
This commit is contained in:
parent
fc5dd09f47
commit
ef0b03325f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue