Fix #1765: enabling tide when lsp is active
This commit is contained in:
parent
1539387747
commit
d0e3bc3455
2 changed files with 4 additions and 5 deletions
|
@ -145,9 +145,7 @@ to tide."
|
|||
;; necessary because `tide-setup' and `lsp' will error if not a
|
||||
;; file-visiting buffer
|
||||
(add-hook 'after-save-hook #'+javascript-init-tide-or-lsp-maybe-h nil 'local)
|
||||
(or (and (featurep! +lsp)
|
||||
(lsp!)
|
||||
(bound-and-true-p lsp-mode))
|
||||
(or (and (featurep! +lsp) (lsp!))
|
||||
;; fall back to tide
|
||||
(if (executable-find "node")
|
||||
(and (require 'tide nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue