mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/javascript: fix rjsx-electric-gt reparsing advice
This commit is contained in:
@ -67,8 +67,8 @@
|
|||||||
;; However, the parser doesn't run immediately, so a fast typist can outrun
|
;; However, the parser doesn't run immediately, so a fast typist can outrun
|
||||||
;; it, causing issues, so force it to parse.
|
;; it, causing issues, so force it to parse.
|
||||||
(defun +javascript|reparse (n)
|
(defun +javascript|reparse (n)
|
||||||
;; if n != 0, then rjsx-maybe-reparse will be run elsewhere
|
;; if n != 1, then rjsx-maybe-reparse will be run elsewhere
|
||||||
(if (= n 0) (rjsx-maybe-reparse)))
|
(if (= n 1) (rjsx-maybe-reparse)))
|
||||||
(advice-add #'rjsx-electric-gt :before #'+javascript|reparse))
|
(advice-add #'rjsx-electric-gt :before #'+javascript|reparse))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user