Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Dec 6, 2024
1 parent a6b1a51 commit 701d4e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lisp/init-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,15 @@ COUNT, BEG, END, TYPE is used. If INCLUSIVE is t, the text object is inclusive.
(forward-line 1)
(evil-search search t t (point))))

(defun my-rjsx-jump-tag ()
"Wrapper of `rjsx-jump-tags'."
(when (string-match "</?>" (string-trim (evilmi-sdk-curline)))
(when (functionp 'rjsx-jump-tag)
(rjsx-jump-tag))))

(with-eval-after-load 'rjsx-mode
(my-ensure 'evil-matchit)
(when (functionp 'evilmi-add-one-plugin-rule)
(defun my-rjsx-jump-tag ()
(when (string-match "</?>" (string-trim (evilmi-sdk-curline)))
(rjsx-jump-tag)))
(evilmi-add-one-plugin-rule #'rjsx-mode #'my-rjsx-jump-tag)))

;; "gd" or `evil-goto-definition' now use `imenu', `xref' first,
Expand Down

0 comments on commit 701d4e0

Please sign in to comment.