Closed xiumingzhang closed 1 year ago
Good work! If I'm not wrong, coc-html implicitly runs Tidy on the buffer, giving error and warning hints for the current buffer content.
I often use Tidy to auto-format my HTML code with
tidy -m /path/to/my.html
Is there a way to pass -m to Tidy so that my buffer gets auto-formatted on every buffer write? Thanks.
-m
Achieved this with neomake by adding:
let g:neomake_html_enabled_makers = ['tidy'] let g:neomake_html_tidy_maker = { 'args': ['-modify'] }
to my neovim configuration. But this, together with coc-html, will run Tidy twice, right? Doesn't sound optimal to me.
It can't use tidy, vscode-html-languageservice is used
Good work! If I'm not wrong, coc-html implicitly runs Tidy on the buffer, giving error and warning hints for the current buffer content.
I often use Tidy to auto-format my HTML code with
Is there a way to pass
-m
to Tidy so that my buffer gets auto-formatted on every buffer write? Thanks.Update
Achieved this with neomake by adding:
to my neovim configuration. But this, together with coc-html, will run Tidy twice, right? Doesn't sound optimal to me.