Fix nlinum bug when unfolding code in web-mode
This commit is contained in:
parent
96ba76e4a3
commit
4409f20c8d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue