Add doom*project-root advice fn
This commit is contained in:
parent
7d081c3154
commit
a2ca21cc21
3 changed files with 9 additions and 6 deletions
|
@ -87,9 +87,7 @@
|
|||
:commands 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))
|
||||
(advice-add #'tern-project-dir :override #'doom*project-root))
|
||||
|
||||
|
||||
(def-package! company-tern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue