fix(markdown): disable meta keybinds if evil-disable-insert-state-bindings

While I don't intend to respect `evil-disable-insert-state-bindings`
everywhere, exhaustively (such as org's rebinding of return or tab), I
will do it for non-essential keybinds that have a high likeliness of
overwriting navigation commands (like meta keys).
This commit is contained in:
Henrik Lissner 2024-08-21 13:38:15 -04:00
parent aa8c31cf08
commit 122e3732f7
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -134,11 +134,12 @@ capture, the end position, and the output buffer.")
(map! :map evil-markdown-mode-map
:n "TAB" #'markdown-cycle
:n [backtab] #'markdown-shifttab
(:unless evil-disable-insert-state-bindings
:i "M-*" #'markdown-insert-list-item
:i "M-b" #'markdown-insert-bold
:i "M-i" #'markdown-insert-italic
:i "M-`" #'+markdown/insert-del
:i "M--" #'markdown-insert-hr
:i "M--" #'markdown-insert-hr)
:n "M-r" #'browse-url-of-file
:m "]h" #'markdown-next-visible-heading
:m "[h" #'markdown-previous-visible-heading