mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix nlinum bug when unfolding code in web-mode
This commit is contained in:
@ -40,10 +40,14 @@
|
|||||||
(add-hook! web-mode (setenv "jsbeautify_indent_size" "4"))
|
(add-hook! web-mode (setenv "jsbeautify_indent_size" "4"))
|
||||||
(bind! :map web-mode-map :m "gQ" 'web-beautify-html))
|
(bind! :map web-mode-map :m "gQ" 'web-beautify-html))
|
||||||
|
|
||||||
|
(after! nlinum
|
||||||
|
;; Fix blank line numbers after unfolding
|
||||||
|
(advice-add 'web-mode-fold-or-unfold :after 'nlinum--flush))
|
||||||
|
|
||||||
(bind! :map web-mode-map
|
(bind! :map web-mode-map
|
||||||
"M-/" 'web-mode-comment-or-uncomment
|
"M-/" 'web-mode-comment-or-uncomment
|
||||||
|
|
||||||
:n "zf" 'web-mode-fold-or-unfold
|
:n "za" 'web-mode-fold-or-unfold
|
||||||
:n ",t" 'web-mode-element-rename
|
:n ",t" 'web-mode-element-rename
|
||||||
|
|
||||||
:nv "]a" 'web-mode-attribute-next
|
:nv "]a" 'web-mode-attribute-next
|
||||||
|
Reference in New Issue
Block a user