Fix #3041: void-function +javascript-init-tide-or-lsp-maybe-h error
This commit is contained in:
parent
cacc4a0ff7
commit
348d5751fd
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ to tide."
|
||||||
(if (not buffer-file-name)
|
(if (not buffer-file-name)
|
||||||
;; necessary because `tide-setup' and `lsp' will error if not a
|
;; necessary because `tide-setup' and `lsp' will error if not a
|
||||||
;; file-visiting buffer
|
;; file-visiting buffer
|
||||||
(add-hook 'after-save-hook #'+javascript-init-tide-or-lsp-maybe-h nil 'local)
|
(add-hook 'after-save-hook #'+javascript-init-lsp-or-tide-maybe-h nil 'local)
|
||||||
(or (and (featurep! +lsp) (lsp!))
|
(or (and (featurep! +lsp) (lsp!))
|
||||||
;; fall back to tide
|
;; fall back to tide
|
||||||
(if (executable-find "node")
|
(if (executable-find "node")
|
||||||
|
@ -161,7 +161,7 @@ to tide."
|
||||||
(progn (tide-setup) tide-mode))
|
(progn (tide-setup) tide-mode))
|
||||||
(ignore
|
(ignore
|
||||||
(doom-log "Couldn't start tide because 'node' is missing"))))
|
(doom-log "Couldn't start tide because 'node' is missing"))))
|
||||||
(remove-hook 'after-save-hook #'+javascript-init-tide-or-lsp-maybe-h 'local))))))
|
(remove-hook 'after-save-hook #'+javascript-init-lsp-or-tide-maybe-h 'local))))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! tide
|
(use-package! tide
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue