Fix evil-matchit % jump in web mode (#14940)

problem
With the cursor on a parenthesis in js code in a .html document,
pressing:
```
%                      ;; evilmi-jump-items
```
jumps to the buffers last line.

solution from upstream issue
Jump to end when current line has a "if" keyword in web-mode and html-mode
https://github.com/redguardtoo/evil-matchit/issues/119
This commit is contained in:
duianto 2021-07-22 09:45:26 +02:00 committed by GitHub
parent eeb363f6e4
commit 48d1f53630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,7 @@
(spacemacs|hide-lighter emmet-mode))))
(defun html/post-init-evil-matchit ()
(evilmi-load-plugin-rules '(web-mode) '(simple template html))
(add-hook 'web-mode-hook 'turn-on-evil-matchit-mode))
(defun html/post-init-flycheck ()