Fix tide not working with rjsx-mode
Tide doesn't work with rjsx-mode after changing to *-mode-local-vars-hook. Fixed by adding +javascript-init-lsp-or-tide-maybe-h for rjsx-mode-local-vars-hook as well. Signed-off-by: Huy Duong <huy.duong@employmenthero.com>
This commit is contained in:
parent
be396655c4
commit
8ae7bf0ef1
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@
|
||||||
|
|
||||||
(add-hook! '(js2-mode-local-vars-hook
|
(add-hook! '(js2-mode-local-vars-hook
|
||||||
typescript-mode-local-vars-hook
|
typescript-mode-local-vars-hook
|
||||||
web-mode-local-vars-hook)
|
web-mode-local-vars-hook
|
||||||
|
rjsx-mode-local-vars-hook)
|
||||||
(defun +javascript-init-lsp-or-tide-maybe-h ()
|
(defun +javascript-init-lsp-or-tide-maybe-h ()
|
||||||
"Start `lsp' or `tide' in the current buffer.
|
"Start `lsp' or `tide' in the current buffer.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue